public class MMBaseCopConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DTD_SECURITY_1_0
DTD resource filename of the Builder DTD version 1.0
|
static String |
PUBLIC_ID_SECURITY_1_0
Public ID of the Builder DTD version 1.0
|
static ResourceLoader |
securityLoader |
protected ResourceWatcher |
watcher
looks if the files have been changed
|
| Constructor and Description |
|---|
MMBaseCopConfig(MMBaseCop mmbaseCop)
The constructor, will load the classes for authorization and authentication
with their config files, as specied in the xml from configUrl
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSharedSecret(String received)
checks if the received shared secret is equals to your own shared secret
|
ActionRepository |
getActionRepository() |
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
|
(package private) void |
load() |
public static final ResourceLoader securityLoader
protected ResourceWatcher watcher
public static final String PUBLIC_ID_SECURITY_1_0
public static final String DTD_SECURITY_1_0
MMBaseCopConfig(MMBaseCop mmbaseCop) throws IOException, NoSuchMethodException, SecurityException
mmbaseCop - The MMBaseCop for which this is a configuratorIOException - When reading the file failed.. - When XML not validates.SecurityException - When the class could not be loadedNoSuchMethodExceptionvoid load() throws IOException
IOExceptionpublic Authentication getAuthentication()
public Authorization getAuthorization()
public ActionRepository getActionRepository()
public boolean getActive()
trueWhen the SecurityManager should
be used.
falseWhen not.public boolean checkSharedSecret(String received)
received - shared secretpublic String getSharedSecret()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}