P - the type of the principalpublic class PermitAllAuthorizer<P extends Principal> extends Object implements Authorizer<P>
Authorizer that grants access for any principal in any role.| Constructor and Description |
|---|
PermitAllAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(P principal,
String role)
Decides if access is granted for the given principal in the given role.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthorize, getAuthorizationContextpublic boolean authorize(P principal, String role)
Authorizerauthorize in interface Authorizer<P extends Principal>principal - a Principal object, representing a userrole - a user roletrue, if the access is granted, false otherwiseCopyright © 2011. All rights reserved.