public interface AuthorizationInfo
AuthConfig.DRUID_AUTH_TOKEN.
In the jersey resources if the authorization is enabled depending on AuthConfig.enabled
the isAuthorized(Resource, Action) method will be used to perform authorization checks| Modifier and Type | Method and Description |
|---|---|
Access |
isAuthorized(Resource resource,
Action action)
|
Access isAuthorized(Resource resource, Action action)
Resource and Action.
resource and action objects should be instantiated depending on
the specific endPoint where the check is being performed.
Modeling Principal and specific way of performing authorization checks is
entirely implementation dependent.resource - information about resource that is being accessedaction - action to be performed on the resourceAccess object having Access.allowed set to true if authorized otherwise set to false
and optionally Access.message set to appropriate messageCopyright © 2011–2017. All rights reserved.