public class ExampleAuthorizer extends Object implements Authorizer<User>
| Constructor and Description |
|---|
ExampleAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(User user,
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(User user, String role)
Authorizerauthorize in interface Authorizer<User>user - a Principal object, representing a userrole - a user roletrue, if the access is granted, false otherwiseCopyright © 2011. All rights reserved.