| java.lang.Object org.apache.lenya.ac.impl.DefaultPolicy
DefaultPolicy | public class DefaultPolicy implements ModifiablePolicy(Code) | | A DefaultPolicy is the own policy of a certain URL (not merged).
|
addCredential | public void addCredential(Credential credential)(Code) | | Adds a credential to this policy.
Parameters: credential - A credential. |
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.
Parameters: accreditable - An accreditable. Parameters: role - A role. |
getCredential | public Credential getCredential(Accreditable accreditable, Role role)(Code) | | Returns the credentials for a certain accreditable.
Parameters: accreditable - An accreditable. Parameters: role - A credential. |
getCredentials | public Credential[] getCredentials()(Code) | | Returns the credentials of this policy in top-down order.
An array of credentials. |
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 notcontained. |
setSSL | public void setSSL(boolean ssl)(Code) | | Sets if this policy requires SSL protection.
Parameters: ssl - A boolean value. |
|
|