public interface AuthorizationService
| Modifier and Type | Interface and Description |
|---|---|
static class |
AuthorizationService.Operation |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAuthorizationAttributeValid(AuthorizationAttribute attribute)
Check whether an attribute is valid.
|
boolean |
isAuthorized(Subject subject,
AuthorizationService.Operation operation,
Resource resource)
Check whether a caller, represented by a token, is authorized to perform an operation on a resource.
|
boolean isAuthorized(Subject subject, AuthorizationService.Operation operation, Resource resource) throws PluginException
subject - The subject that performs the operation on the resourceoperation - the operation (read, write, admin) to authorizeresource - the resource that the subject wants to perform an operation onPluginException - if an error occurred during executionboolean isAuthorizationAttributeValid(AuthorizationAttribute attribute) throws PluginException
attribute - the attribute to validatePluginException - if an error occurred during execution