|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.security.AbsPermissionManager
public abstract class AbsPermissionManager
Defines an abstract PermissionManager class which will manage JACC permissions for an ejbjar, webapp, etc.
Constructor Summary | |
---|---|
AbsPermissionManager(java.lang.String contextId)
Default Constructor |
|
AbsPermissionManager(java.lang.String contextId,
boolean remove)
Default Constructor |
Method Summary | |
---|---|
void |
commit()
Commit the Policy Configuration |
void |
delete()
Delete this object |
protected java.lang.String |
getContextId()
|
protected static java.security.Policy |
getPolicy()
|
protected javax.security.jacc.PolicyConfiguration |
getPolicyConfiguration()
|
protected abstract void |
resetDeploymentDesc()
Reset Deployment Descriptor |
protected void |
setContextId(java.lang.String contextId)
|
protected static void |
setPolicy(java.security.Policy policy)
|
protected void |
setPolicyConfiguration(javax.security.jacc.PolicyConfiguration policyConfiguration)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbsPermissionManager(java.lang.String contextId) throws PermissionManagerException
contextId
- context ID used for PolicyContext
PermissionManagerException
- if permissions can't be setpublic AbsPermissionManager(java.lang.String contextId, boolean remove) throws PermissionManagerException
contextId
- context ID used for PolicyContextremove
- - if true, the policy configuration will be removed.
PermissionManagerException
- if permissions can't be setMethod Detail |
---|
public void delete() throws PermissionManagerException
PermissionManagerException
- if the configuration can't be deletedpublic void commit() throws PermissionManagerException
PermissionManagerException
- if commit can't be doneprotected abstract void resetDeploymentDesc()
protected static java.security.Policy getPolicy()
protected static void setPolicy(java.security.Policy policy)
policy
- The policy to set.protected java.lang.String getContextId()
protected void setContextId(java.lang.String contextId)
contextId
- The contextId to set.protected javax.security.jacc.PolicyConfiguration getPolicyConfiguration()
protected void setPolicyConfiguration(javax.security.jacc.PolicyConfiguration policyConfiguration)
policyConfiguration
- The policyConfiguration to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |