|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.
| Field Summary | |
static java.lang.String |
DTD_SECURITY_1_0
DTD resource filename of the Builder DTD version 1.0 |
static java.lang.String |
PUBLIC_ID_SECURITY_1_0
Public ID of the Builder DTD version 1.0 |
| 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 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. |
java.lang.String |
getSharedSecret()
get the shared Secret |
static void |
registerPublicIDs()
|
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 |
| Field Detail |
public static final java.lang.String PUBLIC_ID_SECURITY_1_0
public static final java.lang.String DTD_SECURITY_1_0
| Constructor Detail |
public MMBaseCopConfig(MMBaseCop mmbaseCop,
java.io.File configFile)
throws java.io.IOException,
java.lang.NoSuchMethodException,
SecurityException
mmbaseCop - The MMBaseCop for which this is a configuratorconfigFile - Configuration file ('security.xml')
java.io.IOException - When reading the file failed
java.lang.NoSuchMethodException - When a tag was not specified
SecurityException - When the class could not be loaded| Method Detail |
public static void registerPublicIDs()
public Authentication getAuthentication()
public Authorization getAuthorization()
public boolean getActive()
trueWhen the SecurityManager should
be used.
falseWhen not.public boolean checkSharedSecret(java.lang.String received)
received - shared secret
public void stopWatching()
public void startWatching()
public java.lang.String getSharedSecret()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||