public interface Authorizer
| Modifier and Type | Method and Description |
|---|---|
String |
dumpConfig()
Returns implementation configuration, e.g.
|
boolean |
isAuthorizationEnabled()
Returns true if authorization is enabled.
|
boolean |
isAuthorized(SecurityContext context,
Request.Type requestType,
String sqlResource)
Checks if user is assigned a role that may perform the request.
|
boolean |
isAuthorized(SecurityContext context,
Request request)
Checks if user is assigned a role that may perform the request.
|
boolean isAuthorizationEnabled()
boolean isAuthorized(SecurityContext context, Request request)
context - security context, usually container-providedrequest - SQL Resource requestboolean isAuthorized(SecurityContext context, Request.Type requestType, String sqlResource)
context - security context, usually container-providedrequestType - request typesqlResource - SQL resource nameString dumpConfig()
Copyright © 2011-2018 restSQL Project Contributors