public class AuthzJwtService extends Object implements AuthorizationService
| Constructor and Description |
|---|
AuthzJwtService() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorizeDataRead(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
SourceAPI sourceAPI)
Authorization for data resource access without keys is not provided by JWTs so all
authorization will be deferred to the underlying permissions assigned to the role the JWT maps
to.
|
void |
authorizeDataWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
List<TypedKeyValue> typedKeyValues,
Scope scope,
SourceAPI sourceAPI) |
void |
authorizeDataWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
Scope scope,
SourceAPI sourceAPI)
Authorization for data resource access without keys is not provided by JWTs so all
authorization will be deferred to the underlying permissions assigned to the role the JWT maps
to.
|
ResultSet |
authorizedDataRead(Callable<ResultSet> action,
AuthenticationSubject authenticationSubject,
String keyspace,
String table,
List<TypedKeyValue> typedKeyValues,
SourceAPI sourceAPI)
Using the provided JWT and the claims it contains will perform pre-authorization where
possible, executes the query provided, and then authorizes the response of the query.
|
void |
authorizePermissionManagement(AuthenticationSubject authenticationSubject,
String resource,
String grantee,
Scope scope,
SourceAPI sourceAPI)
Authorization for permission management is not provided by JWTs so all authorization will be
deferred to the underlying permissions assigned to the role the JWT maps to.
|
void |
authorizePermissionRead(AuthenticationSubject authenticationSubject,
String role,
SourceAPI sourceAPI)
Authorization for permission management is not provided by JWTs so all authorization will be
deferred to the underlying permissions assigned to the role the JWT maps to.
|
void |
authorizeRoleManagement(AuthenticationSubject authenticationSubject,
String role,
Scope scope,
SourceAPI sourceAPI)
Authorization for role management is not provided by JWTs so all authorization will be deferred
to the underlying permissions assigned to the role the JWT maps to.
|
void |
authorizeRoleManagement(AuthenticationSubject authenticationSubject,
String role,
String grantee,
Scope scope,
SourceAPI sourceAPI)
Authorization for role management is not provided by JWTs so all authorization will be deferred
to the underlying permissions assigned to the role the JWT maps to.
|
void |
authorizeRoleRead(AuthenticationSubject authenticationSubject,
String role,
SourceAPI sourceAPI)
Authorization for role management is not provided by JWTs so all authorization will be deferred
to the underlying permissions assigned to the role the JWT 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 JWTs so all authorization will be
deferred to the underlying permissions assigned to the role the JWT 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 JWTs so all authorization will be
deferred to the underlying permissions assigned to the role the JWT 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 keyspace, String table, SourceAPI sourceAPI) throws UnauthorizedException
authorizeDataRead in interface AuthorizationServiceUnauthorizedExceptionpublic void authorizeDataWrite(AuthenticationSubject authenticationSubject, String keyspace, String table, 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 © 2023. All rights reserved.