Methods Summary |
---|
public void | addToExcludedPolicy(java.security.PermissionCollection permissions)Used to add excluded policy statements to this PolicyConfiguration.
|
public void | addToExcludedPolicy(java.security.Permission permission)Used to add a single excluded policy statement to this
PolicyConfiguration.
|
public void | addToRole(java.lang.String roleName, java.security.PermissionCollection permissions)Used to add permissions to a named role in this PolicyConfiguration.
If the named Role does not exist in the PolicyConfiguration, it is
created as a result of the call to this function.
It is the job of the Policy provider to ensure that all the permissions
added to a role are granted to principals "mapped to the role".
|
public void | addToRole(java.lang.String roleName, java.security.Permission permission)Used to add a single permission to a named role in this
PolicyConfiguration.
If the named Role does not exist in the PolicyConfiguration, it is
created as a result of the call to this function.
It is the job of the Policy provider to ensure that all the permissions
added to a role are granted to principals "mapped to the role".
|
public void | addToUncheckedPolicy(java.security.PermissionCollection permissions)Used to add unchecked policy statements to this PolicyConfiguration.
|
public void | addToUncheckedPolicy(java.security.Permission permission)Used to add a single unchecked policy statement to this
PolicyConfiguration.
|
public void | commit()This method is used to set to "inService" the state of the policy context
whose interface is this PolicyConfiguration Object. Only those policy
contexts whose state is "inService" will be included in the policy
contexts processed by the Policy.refresh method. A policy context whose
state is "inService" may be returned to the "open" state by calling the
getPolicyConfiguration method of the PolicyConfiguration factory
with the policy context identifier of the policy context.
When the state of a policy context is "inService", calling any method
other than commit, delete, getContextID, or inService on its
PolicyConfiguration Object will cause an UnsupportedOperationException
to be thrown.
|
public 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.
This operation has no affect on any linked PolicyConfigurations
other than removing any links involving the deleted PolicyConfiguration.
|
public java.lang.String | getContextID()This method returns this object's policy context identifier.
|
public boolean | inService()This method is used to determine if the policy context whose interface is
this PolicyConfiguration Object is in the "inService" state.
|
public void | linkConfiguration(javax.security.jacc.PolicyConfiguration link)Creates a relationship between this configuration and another
such that they share the same principal-to-role mappings.
PolicyConfigurations are linked to apply a common principal-to-role
mapping to multiple seperately manageable PolicyConfigurations,
as is required when an application is composed of multiple
modules.
Note that the policy statements which comprise a role, or comprise
the excluded or unchecked policy collections in a PolicyConfiguration
are unaffected by the configuration being linked to another.
|
public void | removeExcludedPolicy()Used to remove any excluded policy statements from this
PolicyConfiguration.
|
public void | removeRole(java.lang.String roleName)Used to remove a role and all its permissions from this
PolicyConfiguration.
|
public void | removeUncheckedPolicy()Used to remove any unchecked policy statements from this
PolicyConfiguration.
|