|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.systinet.security.policy.WASPAccessController
WASP Access controller is used by callers to check required permissions through
checkPermission method.
The decision on which is the access is permitted is implementation-dependent.
The getInstance() method returns the singleton instance, you should use this method to get WASPAccessController.
If no singleton is available (has not been set),
the JAASAccessController
is used as a default access controller.
| Field Summary | |
static java.lang.String |
WASP_AC_IMPL
the key for the name of WASPAccessController implementation class |
static java.lang.String |
WASP_POLICY_INSTANCE
the key for updateable policy used (optional), used as intialization parameter |
| Constructor Summary | |
protected |
WASPAccessController(java.util.Map configurationParameters)
Initialization of this using given properties. |
| Method Summary | |
static void |
checkPermission(java.security.Permission perm)
Deprecated. use org.idoox.wasp.WaspSecurity.checkPermission for permission checking. |
abstract void |
checkPermission(javax.security.auth.Subject subject,
java.security.Permission perm)
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect and given subject. |
static WASPAccessController |
getInstance()
Get the current instance of WASP access controller. |
static void |
initSingleton(java.util.Map configurationParameters)
Initializes singleton using given parameters. |
static void |
setSingleton(WASPAccessController controller)
Sets the singleton to be used. |
| 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 WASP_AC_IMPL
public static final java.lang.String WASP_POLICY_INSTANCE
| Constructor Detail |
protected WASPAccessController(java.util.Map configurationParameters)
configurationParameters - additional configuration parameters depending on the concrete implementation.
java.lang.SecurityException - unable to initialize with given properties| Method Detail |
public static final WASPAccessController getInstance()
initSingleton method is invoked using System properties),JAASAccessController class is used.JAASAccessController is used.
public static final void setSingleton(WASPAccessController controller)
throws java.lang.SecurityException
controller - singleton to be used
java.lang.SecurityException - singleton is already set
public static final void initSingleton(java.util.Map configurationParameters)
throws java.lang.SecurityException
configurationParameters - a Map of configuration parameters. It must
contain the following keys :
java.lang.SecurityException - singleton is already set, or singleton cannot be initialized
public static final void checkPermission(java.security.Permission perm)
throws java.security.AccessControlException
org.idoox.wasp.WaspSecurity.checkPermission for permission checking.
perm - the requested permission (should not be null)
java.security.AccessControlException - if the specified permission
is not permitted, based on the current security policy.
public abstract void checkPermission(javax.security.auth.Subject subject,
java.security.Permission perm)
throws java.security.AccessControlException
subject - permission is checked for this subject (can be null)perm - the requested permission (should not be null)
java.security.AccessControlException - if the specified permission
is not permitted, based on the current security policy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||