|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModifiablePolicy
Modifiable policy.
Field Summary |
---|
Fields inherited from interface org.apache.lenya.ac.Policy |
---|
RESULT_DENIED, RESULT_GRANTED, RESULT_NOT_MATCHED |
Method Summary | |
---|---|
void |
addRole(Accreditable accreditable,
Role role,
java.lang.String method)
Adds a role to this policy for a certain accreditable and a certain role. |
void |
moveRoleDown(Accreditable accreditable,
Role role)
Moves a role down the credential tree, decreasing its priority. |
void |
moveRoleUp(Accreditable accreditable,
Role role)
Moves a role up the credential tree, giving it higher priority. |
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. |
Methods inherited from interface org.apache.lenya.ac.Policy |
---|
check, getCredentials, getCredentials, isEmpty, isSSLProtected |
Method Detail |
---|
void setSSL(boolean ssl)
ssl
- A boolean value.void addRole(Accreditable accreditable, Role role, java.lang.String method)
accreditable
- An accreditable.role
- A role.method
- void removeRole(Accreditable accreditable, Role role) throws AccessControlException
accreditable
- An accreditable.role
- A role.
AccessControlException
- if the accreditable-role pair is not contained.void removeRoles(Accreditable accreditable) throws AccessControlException
accreditable
- An accreditable.
AccessControlException
- if the accreditable-role pair is not contained.void moveRoleUp(Accreditable accreditable, Role role) throws AccessControlException
accreditable
- role
-
AccessControlException
void moveRoleDown(Accreditable accreditable, Role role) throws AccessControlException
accreditable
- role
-
AccessControlException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |