| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Policy
A policy assigns roles to accreditables using credentials. Additionally, SSL protection is defined.
| Field Summary | |
|---|---|
static int | 
RESULT_DENIED
The role is denied for the identity.  | 
static int | 
RESULT_GRANTED
The role is granted for the identity.  | 
static int | 
RESULT_NOT_MATCHED
The identity was not matched in this policy.  | 
| Method Summary | |
|---|---|
 int | 
check(Identity identity,
      Role role)
Checks if a certain role is granted for a certain policy.  | 
 Credential[] | 
getCredentials()
 | 
 Credential[] | 
getCredentials(Identity identity)
 | 
 boolean | 
isEmpty()
Returns if the policy is empty.  | 
 boolean | 
isSSLProtected()
Returns if this policy requires SSL protection.  | 
| Field Detail | 
|---|
static final int RESULT_NOT_MATCHED
static final int RESULT_DENIED
static final int RESULT_GRANTED
| Method Detail | 
|---|
int check(Identity identity,
          Role role)
          throws AccessControlException
identity - The identity.role - The role to check.
AccessControlException - when something went wrong.
boolean isSSLProtected()
                       throws AccessControlException
AccessControlException - when something went wrong.
boolean isEmpty()
                throws AccessControlException
AccessControlException - when something went wrong.
Credential[] getCredentials(Identity identity)
                            throws AccessControlException
identity - The identity.
AccessControlException - if an error occurs.
Credential[] getCredentials()
                            throws AccessControlException
AccessControlException - if an error occurs.
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||