P - the type of principalspublic interface Authorizer<P extends Principal>
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(P principal,
String role)
Deprecated.
|
default boolean |
authorize(P principal,
String role,
javax.ws.rs.container.ContainerRequestContext requestContext)
Decides if access is granted for the given principal in the given role.
|
@Deprecated boolean authorize(P principal, String role)
authorize(Principal, String, ContainerRequestContext) insteadprincipal - a Principal object, representing a userrole - a user roletrue, if the access is granted, false otherwisedefault boolean authorize(P principal, String role, @Nullable javax.ws.rs.container.ContainerRequestContext requestContext)
principal - a Principal object, representing a userrole - a user rolerequestContext - a request context.true, if the access is granted, false otherwiseCopyright © 2021. All rights reserved.