public class BasicPolicyConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
BasicPolicyConfiguration.RoleResolver |
Modifier and Type | Field and Description |
---|---|
protected java.security.PermissionCollection |
excluded |
protected java.util.Map<java.lang.String,java.security.PermissionCollection> |
rolePermissionsMap |
protected java.security.PermissionCollection |
unchecked |
Modifier | Constructor and Description |
---|---|
protected |
BasicPolicyConfiguration(java.lang.String contextID) |
Modifier and Type | Method and Description |
---|---|
void |
addToExcludedPolicy(java.security.Permission permission) |
void |
addToExcludedPolicy(java.security.PermissionCollection permissions) |
void |
addToRole(java.lang.String roleName,
java.security.Permission permission) |
void |
addToRole(java.lang.String roleName,
java.security.PermissionCollection permissions) |
void |
addToUncheckedPolicy(java.security.Permission permission) |
void |
addToUncheckedPolicy(java.security.PermissionCollection permissions) |
void |
commit() |
void |
delete() |
java.lang.String |
getContextID() |
boolean |
implies(java.security.ProtectionDomain domain,
java.security.Permission permission) |
boolean |
inService() |
void |
linkConfiguration(PolicyConfiguration link) |
void |
open(boolean remove) |
void |
removeExcludedPolicy() |
void |
removeRole(java.lang.String roleName) |
void |
removeUncheckedPolicy() |
protected final java.util.Map<java.lang.String,java.security.PermissionCollection> rolePermissionsMap
protected java.security.PermissionCollection unchecked
protected java.security.PermissionCollection excluded
protected BasicPolicyConfiguration(java.lang.String contextID)
public java.lang.String getContextID() throws PolicyContextException
PolicyContextException
public boolean implies(java.security.ProtectionDomain domain, java.security.Permission permission)
public void addToRole(java.lang.String roleName, java.security.PermissionCollection permissions) throws PolicyContextException
PolicyContextException
public void addToRole(java.lang.String roleName, java.security.Permission permission) throws PolicyContextException
PolicyContextException
public void addToUncheckedPolicy(java.security.PermissionCollection permissions) throws PolicyContextException
PolicyContextException
public void addToUncheckedPolicy(java.security.Permission permission) throws PolicyContextException
PolicyContextException
public void addToExcludedPolicy(java.security.PermissionCollection permissions) throws PolicyContextException
PolicyContextException
public void addToExcludedPolicy(java.security.Permission permission) throws PolicyContextException
PolicyContextException
public void removeRole(java.lang.String roleName) throws PolicyContextException
PolicyContextException
public void removeUncheckedPolicy() throws PolicyContextException
PolicyContextException
public void removeExcludedPolicy() throws PolicyContextException
PolicyContextException
public void linkConfiguration(PolicyConfiguration link) throws PolicyContextException
PolicyContextException
public void delete() throws PolicyContextException
PolicyContextException
public void commit() throws PolicyContextException
PolicyContextException
public boolean inService() throws PolicyContextException
PolicyContextException
public void open(boolean remove)