public interface AuthorizationConstraint
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorized(Principal principal)
Determines if a
Principal is authorized to access this privilege. |
AuthenticationChallenge[] |
challenges()
Returns the authentication
AuthenticationChallenges that are bound to this constraint. |
boolean |
equals(AuthorizationConstraint constraint)
All
AuthorizationConstraint implementations MUST implement the equals(AuthorizationConstraint) method correctly. |
boolean |
equals(Object obj)
All
AuthorizationConstraint implementations MUST implement the Object.equals(Object) method correctly. |
int |
hashCode()
All
AuthorizationConstraint implementations MUST implement the Object.hashCode() method correctly. |
String |
name()
The unique name assigned to this constraint.
|
String name()
AuthorizationConstraint to share the same name.AuthenticationChallenge[] challenges()
AuthenticationChallenges that are bound to this constraint.AuthenticationChallenge instances that the constraint is bound toboolean authorized(Principal principal)
Principal is authorized to access this privilege.principal - The Principal to test for authorizationboolean equals(Object obj)
AuthorizationConstraint implementations MUST implement the Object.equals(Object) method correctly. Typical implementations of this method should check if the specified object is an instance of AuthorizationConstraint. If it is then delegate to equals(AuthorizationConstraint). If not then return false.equals in class Objectobj - The object to test for equality.equals(AuthorizationConstraint)boolean equals(AuthorizationConstraint constraint)
AuthorizationConstraint implementations MUST implement the equals(AuthorizationConstraint) method correctly. Typical implementations of this method should check if the specified object is an instance of the same sub-type of AuthorizationConstraint. If it is then compare each of the properties of the sub-type for equality. If it is not of the same sub-type then return false.constraint - The AuthorizationConstraint to test for equalityint hashCode()
AuthorizationConstraint implementations MUST implement the Object.hashCode() method correctly.hashCode in class ObjectObject.hashCode()