|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.jacc.JBossPolicyConfiguration
The JACC PolicyConfiguration implementation. This class associates a context id with the permission ops it passes along to the global DelegatingPolicy instance.
Constructor Summary | |
protected |
JBossPolicyConfiguration(java.lang.String contextID,
DelegatingPolicy (src) policy,
StateMachine (src) configStateMachine)
|
Method Summary | |
void |
addToExcludedPolicy(java.security.Permission permission)
Adds a single excluded permission to the PolicyConfiguration. |
void |
addToExcludedPolicy(java.security.PermissionCollection permissions)
Adds a collection of excluded permissions to the PolicyConfiguration |
void |
addToRole(java.lang.String roleName,
java.security.Permission permission)
Add a single permission to a named role in the PolicyConfiguration. |
void |
addToRole(java.lang.String roleName,
java.security.PermissionCollection permissions)
Add permissions to a named role in the PolicyConfiguration. |
void |
addToUncheckedPolicy(java.security.Permission permission)
Add a single unchecked permission to the PolicyConfiguration. |
void |
addToUncheckedPolicy(java.security.PermissionCollection permissions)
Add unchecked permissions to the PolicyConfiguration. |
void |
commit()
This method is used to set to "inService" the state of the policy context whose interface is this PolicyConfiguration Object. |
void |
delete()
Causes all policy statements to be deleted from this PolicyConfiguration and sets its internal state such that calling any method, other than delete, getContextID, or inService on the PolicyConfiguration will be rejected and cause an UnsupportedOperationException to be thrown. |
java.lang.String |
getContextID()
This method returns this object's policy context identifier. |
boolean |
inService()
This method is used to determine if the policy context whose interface is this PolicyConfiguration Object is in the "inService" state. |
void |
linkConfiguration(PolicyConfiguration (src) link)
Creates a relationship between this configuration and another such that they share the same principal-to-role mappings. |
void |
removeExcludedPolicy()
Used to remove any excluded policy statements from this PolicyConfiguration |
void |
removeRole(java.lang.String roleName)
Used to remove a role and all its permissions from this PolicyConfiguration. |
void |
removeUncheckedPolicy()
Used to remove any unchecked policy statements from this PolicyConfiguration. |
protected void |
validateState(java.lang.String action)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JBossPolicyConfiguration(java.lang.String contextID, DelegatingPolicy (src) policy, StateMachine (src) configStateMachine) throws PolicyContextException (src)
Method Detail |
public void addToExcludedPolicy(java.security.Permission permission) throws PolicyContextException (src)
PolicyConfiguration (src)
addToExcludedPolicy
in interface PolicyConfiguration (src)
permission
-
PolicyContextException (src)
public void addToExcludedPolicy(java.security.PermissionCollection permissions) throws PolicyContextException (src)
PolicyConfiguration (src)
addToExcludedPolicy
in interface PolicyConfiguration (src)
permissions
-
PolicyContextException (src)
public void addToRole(java.lang.String roleName, java.security.Permission permission) throws PolicyContextException (src)
PolicyConfiguration (src)
addToRole
in interface PolicyConfiguration (src)
roleName
- permission
-
PolicyContextException (src)
public void addToRole(java.lang.String roleName, java.security.PermissionCollection permissions) throws PolicyContextException (src)
PolicyConfiguration (src)
addToRole
in interface PolicyConfiguration (src)
roleName
- permissions
-
PolicyContextException (src)
public void addToUncheckedPolicy(java.security.Permission permission) throws PolicyContextException (src)
PolicyConfiguration (src)
addToUncheckedPolicy
in interface PolicyConfiguration (src)
permission
-
PolicyContextException (src)
public void addToUncheckedPolicy(java.security.PermissionCollection permissions) throws PolicyContextException (src)
PolicyConfiguration (src)
addToUncheckedPolicy
in interface PolicyConfiguration (src)
permissions
-
PolicyContextException (src)
public void commit() throws PolicyContextException (src)
PolicyConfiguration (src)
commit
in interface PolicyConfiguration (src)
PolicyContextException (src)
- - if the implementation throws a checked
exception that has not been accounted for by the commit method signature.public void delete() throws PolicyContextException (src)
PolicyConfiguration (src)
delete
in interface PolicyConfiguration (src)
PolicyContextException (src)
public java.lang.String getContextID() throws PolicyContextException (src)
PolicyConfiguration (src)
getContextID
in interface PolicyConfiguration (src)
PolicyContextException (src)
public boolean inService() throws PolicyContextException (src)
PolicyConfiguration (src)
inService
in interface PolicyConfiguration (src)
PolicyContextException (src)
public void linkConfiguration(PolicyConfiguration (src) link) throws PolicyContextException (src)
PolicyConfiguration (src)
linkConfiguration
in interface PolicyConfiguration (src)
link
- - a reference to a different PolicyConfiguration than this
PolicyConfiguration. The relationship formed by this method is symetric,
transitive and idempotent. If the argument PolicyConfiguration does not
have a different Policy context identifier than this PolicyConfiguration
no relationship is formed, and an IllegalArgumentException is thrown.
PolicyContextException (src)
public void removeExcludedPolicy() throws PolicyContextException (src)
PolicyConfiguration (src)
removeExcludedPolicy
in interface PolicyConfiguration (src)
PolicyContextException (src)
public void removeRole(java.lang.String roleName) throws PolicyContextException (src)
PolicyConfiguration (src)
removeRole
in interface PolicyConfiguration (src)
roleName
- - the name of the Role to remove from this PolicyConfiguration.
PolicyContextException (src)
public void removeUncheckedPolicy() throws PolicyContextException (src)
PolicyConfiguration (src)
removeUncheckedPolicy
in interface PolicyConfiguration (src)
PolicyContextException (src)
protected void validateState(java.lang.String action) throws PolicyContextException (src)
PolicyContextException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |