public class MMBaseCop extends SecurityManager
inCheck| Constructor and Description |
|---|
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
|
protected void |
copyActions(ActionRepository source,
ActionRepository destination) |
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
|
void |
reload()
reload, will load the classes for authorization and authentication
with their config files, as specied in the xml from configUrl
|
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoaderpublic MMBaseCop()
throws IOException,
NoSuchMethodException,
SecurityException
IOException - When reading the file failedNoSuchMethodException - When a tag was not specifiedSecurityException - When the class could not be loadedprotected void copyActions(ActionRepository source, ActionRepository destination)
public void reload()
throws IOException,
NoSuchMethodException,
SecurityException
IOException - When reading the file failedNoSuchMethodException - When a tag was not specifiedSecurityException - When the class could not be loadedpublic 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}