|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.SecurityManager
org.mmbase.security.MMBaseCop
This class is the main class of the security system. It loads the authentication and authorization classes if needed, and they can be requested from this manager.
| Field Summary |
| Fields inherited from class java.lang.SecurityManager |
inCheck |
| Constructor Summary | |
MMBaseCop()
The constructor, will load the classes for authorization and authentication with their config files, as specied in the xml from configUrl |
|
| Method Summary | |
boolean |
checkSharedSecret(String received)
checks if the received shared secret is equals to your own shared secret |
boolean |
getActive()
Returns the authorization class, which should be used(for optimizations) |
Authentication |
getAuthentication()
Returns the authentication class, which should be used. |
Authorization |
getAuthorization()
Returns the authorization class, which should be used. |
String |
getSharedSecret()
get the shared Secret |
void |
reload()
reload, will load the classes for authorization and authentication with their config files, as specied in the xml from configUrl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MMBaseCop()
throws IOException,
NoSuchMethodException,
SecurityException
IOException - When reading the file failed
NoSuchMethodException - When a tag was not specified
SecurityException - When the class could not be loaded| Method Detail |
public void reload()
throws IOException,
NoSuchMethodException,
SecurityException
IOException - When reading the file failed
NoSuchMethodException - When a tag was not specified
SecurityException - When the class could not be loadedpublic Authentication getAuthentication()
public Authorization getAuthorization()
public boolean getActive()
trueWhen the SecurityManager should
be used.
falseWhen not.public boolean checkSharedSecret(String received)
received - shared secret
public String getSharedSecret()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||