public class AuthzTableBasedService extends Object implements AuthorizationService
| Constructor and Description |
|---|
AuthzTableBasedService() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorizeDataRead(AuthenticationSubject authenticationSubject,
String keyspaceNames,
String tableNames,
SourceAPI sourceAPI)
Authorization for data access is not provided by table based tokens so all authorization will
be deferred to the underlying permissions assigned to the role the token maps to.
|
void |
authorizeDataWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
List<TypedKeyValue> typedKeyValues,
Scope scope,
SourceAPI sourceAPI)
Authorization for data access is not provided by table based tokens so all authorization will
be deferred to the underlying permissions assigned to the role the token maps to.
|
void |
authorizeDataWrite(AuthenticationSubject authenticationSubject,
String keyspaceNames,
String tableNames,
Scope scope,
SourceAPI sourceAPI)
Authorization for data access is not provided by table based tokens so all authorization will
be deferred to the underlying permissions assigned to the role the token maps to.
|
ResultSet |
authorizedDataRead(Callable<ResultSet> action,
AuthenticationSubject authenticationSubject,
String keyspace,
String table,
List<TypedKeyValue> typedKeyValues,
SourceAPI sourceAPI)
Authorization for data access is not provided by table based tokens so all authorization will
be deferred to the underlying permissions assigned to the role the token maps to.
|
void |
authorizePermissionManagement(AuthenticationSubject authenticationSubject,
String resource,
String grantee,
Scope scope,
SourceAPI sourceAPI)
Authorization for permission management is not provided by table based tokens so all
authorization will be deferred to the underlying permissions assigned to the role the token
maps to.
|
void |
authorizePermissionRead(AuthenticationSubject authenticationSubject,
String role,
SourceAPI sourceAPI)
Authorization for permission management is not provided by table based tokens so all
authorization will be deferred to the underlying permissions assigned to the role the token
maps to.
|
void |
authorizeRoleManagement(AuthenticationSubject authenticationSubject,
String role,
Scope scope,
SourceAPI sourceAPI)
Authorization for role management is not provided by table based tokens so all authorization
will be deferred to the underlying permissions assigned to the role the token maps to.
|
void |
authorizeRoleManagement(AuthenticationSubject authenticationSubject,
String role,
String grantee,
Scope scope,
SourceAPI sourceAPI)
Authorization for role management is not provided by table based tokens so all authorization
will be deferred to the underlying permissions assigned to the role the token maps to.
|
void |
authorizeRoleRead(AuthenticationSubject authenticationSubject,
String role,
SourceAPI sourceAPI)
Authorization for role management is not provided by table based tokens so all authorization
will be deferred to the underlying permissions assigned to the role the token maps to.
|
void |
authorizeSchemaRead(AuthenticationSubject authenticationSubject,
List<String> keyspaceNames,
List<String> tableNames,
SourceAPI sourceAPI,
ResourceKind resource)
Authorization for schema resource access is not provided by table based tokens so all
authorization will be deferred to the underlying permissions assigned to the role the token
maps to.
|
void |
authorizeSchemaWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
Scope scope,
SourceAPI sourceAPI,
ResourceKind resource)
Authorization for schema resource access is not provided by table based tokens so all
authorization will be deferred to the underlying permissions assigned to the role the token
maps to.
|
public ResultSet authorizedDataRead(Callable<ResultSet> action, AuthenticationSubject authenticationSubject, String keyspace, String table, List<TypedKeyValue> typedKeyValues, SourceAPI sourceAPI) throws Exception
authorizedDataRead in interface AuthorizationServiceExceptionpublic void authorizeDataRead(AuthenticationSubject authenticationSubject, String keyspaceNames, String tableNames, SourceAPI sourceAPI) throws UnauthorizedException
authorizeDataRead in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeDataWrite(AuthenticationSubject authenticationSubject, String keyspaceNames, String tableNames, Scope scope, SourceAPI sourceAPI) throws UnauthorizedException
authorizeDataWrite in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeDataWrite(AuthenticationSubject authenticationSubject, String keyspace, String table, List<TypedKeyValue> typedKeyValues, Scope scope, SourceAPI sourceAPI) throws UnauthorizedException
authorizeDataWrite in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeSchemaRead(AuthenticationSubject authenticationSubject, List<String> keyspaceNames, List<String> tableNames, SourceAPI sourceAPI, ResourceKind resource) throws UnauthorizedException
authorizeSchemaRead in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeSchemaWrite(AuthenticationSubject authenticationSubject, String keyspace, String table, Scope scope, SourceAPI sourceAPI, ResourceKind resource) throws UnauthorizedException
authorizeSchemaWrite in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeRoleManagement(AuthenticationSubject authenticationSubject, String role, Scope scope, SourceAPI sourceAPI) throws UnauthorizedException
authorizeRoleManagement in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeRoleManagement(AuthenticationSubject authenticationSubject, String role, String grantee, Scope scope, SourceAPI sourceAPI) throws UnauthorizedException
authorizeRoleManagement in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeRoleRead(AuthenticationSubject authenticationSubject, String role, SourceAPI sourceAPI) throws UnauthorizedException
authorizeRoleRead in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizePermissionManagement(AuthenticationSubject authenticationSubject, String resource, String grantee, Scope scope, SourceAPI sourceAPI) throws UnauthorizedException
authorizePermissionManagement in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizePermissionRead(AuthenticationSubject authenticationSubject, String role, SourceAPI sourceAPI) throws UnauthorizedException
authorizePermissionRead in interface AuthorizationServiceUnauthorizedExceptionCopyright © 2021. All rights reserved.