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, wait
authorize, getAuthorizationContext
public boolean authorize(P principal, String role)
Authorizer
authorize
in interface Authorizer<P extends Principal>
principal
- a Principal
object, representing a userrole
- a user roletrue
, if the access is granted, false otherwise
Copyright © 2011. All rights reserved.