public class AuthorizerImpl extends Object implements Authorizer
isAuthorized()
always returns true
.Constructor and Description |
---|
AuthorizerImpl()
For use by the Factory.
|
Modifier and Type | Method and Description |
---|---|
String |
dumpConfig()
Returns status message and string representation of all roles and associated privileges.
|
boolean |
isAuthorizationEnabled()
Returns true if authorization is enabled.
|
boolean |
isAuthorized(SecurityContext context,
Request.Type requestType,
String sqlResource)
Returns true if user is authorized (or authorization is disabled), false otherwise.
|
boolean |
isAuthorized(SecurityContext context,
Request request)
Checks if user is assigned a role that may perform the request.
|
public AuthorizerImpl()
public boolean isAuthorizationEnabled()
isAuthorizationEnabled
in interface Authorizer
public String dumpConfig()
dumpConfig
in interface Authorizer
public boolean isAuthorized(SecurityContext context, Request request)
Authorizer
isAuthorized
in interface Authorizer
context
- security context, usually container-providedrequest
- SQL Resource requestpublic boolean isAuthorized(SecurityContext context, Request.Type requestType, String sqlResource)
isAuthorized
in interface Authorizer
context
- security context, usually container-providedrequestType
- request typesqlResource
- SQL resource nameCopyright © 2011-2018 restSQL Project Contributors