| org.apache.lenya.ac.ModifiablePolicy
All known Subclasses: org.apache.lenya.ac.impl.DefaultPolicy,
ModifiablePolicy | public interface ModifiablePolicy extends Policy(Code) | | Modifiable policy.
|
Method Summary | |
public void | addRole(Accreditable accreditable, Role role, String method) Adds a role to this policy for a certain accreditable and a certain role.
If a credenital exists for the accreditable, the role is added to this
credential. | public void | moveRoleDown(Accreditable accreditable, Role role) Moves a role down the credential tree, decreasing its priority. | public void | moveRoleUp(Accreditable accreditable, Role role) Moves a role up the credential tree, giving it higher priority. | public void | removeRole(Accreditable accreditable, Role role) Removes a role from this policy for a certain accreditable and a certain
role. | void | removeRoles(Accreditable accreditable) Removes all roles from this policy for a certain accreditable. | void | setSSL(boolean ssl) Sets if this policy requires SSL protection. |
addRole | public void addRole(Accreditable accreditable, Role role, String method)(Code) | | Adds a role to this policy for a certain accreditable and a certain role.
If a credenital exists for the accreditable, the role is added to this
credential. Otherwise, a new credential is created.
Parameters: accreditable - An accreditable. Parameters: role - A role. Parameters: method - |
removeRole | public void removeRole(Accreditable accreditable, Role role) throws AccessControlException(Code) | | Removes a role from this policy for a certain accreditable and a certain
role.
Parameters: accreditable - An accreditable. Parameters: role - A role. throws: AccessControlException - if the accreditable-role pair is not contained. |
setSSL | void setSSL(boolean ssl)(Code) | | Sets if this policy requires SSL protection.
Parameters: ssl - A boolean value. |
|
|