|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.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.
| Fields inherited from class java.lang.SecurityManager |
inCheck |
| Constructor Summary | |
MMBaseCop(java.lang.String configPath)
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 |
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.SecurityManager |
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, inClassLoader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MMBaseCop(java.lang.String configPath)
throws java.io.IOException,
java.lang.NoSuchMethodException,
SecurityException
configPath - Path to the security configuration file (security.xml)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 void reload()
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 loadedpublic 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 java.lang.String getSharedSecret()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||