| Package | Description |
|---|---|
| io.stargate.auth |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableAuthenticationSubject
Immutable implementation of
AuthenticationSubject. |
| Modifier and Type | Field and Description |
|---|---|
protected AuthenticationSubject |
PlainTextTokenSaslNegotiator.authenticationSubject |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationSubject |
AuthenticationSubject.of(AuthenticatedUser user) |
static AuthenticationSubject |
AuthenticationSubject.of(String token,
String roleName) |
static AuthenticationSubject |
AuthenticationSubject.of(String token,
String roleName,
boolean fromExternalAuth) |
static AuthenticationSubject |
AuthenticationSubject.of(String token,
String roleName,
boolean fromExternalAuth,
Map<String,String> properties) |
AuthenticationSubject |
AuthenticationService.validateToken(String token) |
default AuthenticationSubject |
AuthenticationService.validateToken(String token,
ClientInfo clientInfo) |
default AuthenticationSubject |
AuthenticationService.validateToken(String token,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
AuthorizationService.authorizeDataRead(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization and if not successful throws an
exception.
|
void |
AuthorizationService.authorizeDataWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
List<TypedKeyValue> typedKeyValues,
Scope scope,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization where possible.
|
void |
AuthorizationService.authorizeDataWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
Scope scope,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization and if not successful throws an
exception.
|
ResultSet |
AuthorizationService.authorizedDataRead(Callable<ResultSet> action,
AuthenticationSubject authenticationSubject,
String keyspace,
String table,
List<TypedKeyValue> typedKeyValues,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization where possible, executes the query
provided, and then authorizes the response of the query.
|
void |
AuthorizationService.authorizePermissionManagement(AuthenticationSubject authenticationSubject,
String resource,
String grantee,
Scope scope,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization of permission management.
|
void |
AuthorizationService.authorizePermissionRead(AuthenticationSubject authenticationSubject,
String role,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization of permission access.
|
void |
AuthorizationService.authorizeRoleManagement(AuthenticationSubject authenticationSubject,
String role,
Scope scope,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization of role management.
|
void |
AuthorizationService.authorizeRoleManagement(AuthenticationSubject authenticationSubject,
String role,
String grantee,
Scope scope,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization of role management.
|
void |
AuthorizationService.authorizeRoleRead(AuthenticationSubject authenticationSubject,
String role,
SourceAPI sourceAPI)
Using the provided token will perform pre-authorization of role access.
|
void |
AuthorizationService.authorizeSchemaRead(AuthenticationSubject authenticationSubject,
List<String> keyspaceNames,
List<String> tableNames,
SourceAPI sourceAPI,
ResourceKind resource)
Using the provided token will perform pre-authorization of accessing the provided resources.
|
void |
AuthorizationService.authorizeSchemaWrite(AuthenticationSubject authenticationSubject,
String keyspace,
String table,
Scope scope,
SourceAPI sourceAPI,
ResourceKind resource)
Using the provided token will perform pre-authorization where possible and if not successful
throws an exception.
|
static ImmutableAuthenticationSubject |
ImmutableAuthenticationSubject.copyOf(AuthenticationSubject instance)
Creates an immutable copy of a
AuthenticationSubject value. |
ImmutableAuthenticationSubject.Builder |
ImmutableAuthenticationSubject.Builder.from(AuthenticationSubject instance)
Fill a builder with attribute values from the provided
AuthenticationSubject instance. |
Copyright © 2022. All rights reserved.