|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.security.MMBaseCopConfig
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.
| Constructor Summary | |
MMBaseCopConfig(MMBaseCop mmbaseCop,
java.io.File configFile)
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(java.lang.String key)
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. |
java.lang.String |
getSharedSecret()
get the shared Secret |
void |
startWatching()
starts tracking changes on the files... |
void |
stopWatching()
stops tracking changes on the files... |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MMBaseCopConfig(MMBaseCop mmbaseCop,
java.io.File configFile)
throws java.io.IOException,
java.lang.NoSuchMethodException,
SecurityException
java.io.IOException - When reading the file failedjava.lang.NoSuchMethodException - When a tag was not specifiedSecurityException - When the class could not
be loaded| Method Detail |
public Authentication getAuthentication()
public Authorization getAuthorization()
public boolean getActive()
trueWhen the SecurityManager should
be used.
falseWhen not.public boolean checkSharedSecret(java.lang.String key)
receive - shared secretpublic void stopWatching()
public void startWatching()
public java.lang.String getSharedSecret()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||