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