public interface AuthorizationProcessor
This interface is intended to broadly cover the functionality of CQL GRANT/REVOKE commands in a programmatic API.
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
addPermissions(Actor performer,
AuthorizationOutcome outcome,
PermissionKind kind,
Collection<AccessPermission> permissions,
AuthorizedResource resource,
EntitySelector grantee)
Grants
grantee the specified access permissions on the specified resource. |
CompletionStage<Void> |
removePermissions(Actor performer,
AuthorizationOutcome outcome,
PermissionKind kind,
Collection<AccessPermission> permissions,
AuthorizedResource resource,
EntitySelector grantee)
Revokes the specified access
permissions on the specified resource from the
grantee. |
CompletionStage<Void> addPermissions(Actor performer, AuthorizationOutcome outcome, PermissionKind kind, Collection<AccessPermission> permissions, AuthorizedResource resource, EntitySelector grantee)
grantee the specified access permissions on the specified resource. Note that access can be positive (AuthorizationOutcome.ALLOW or negative
AuthorizationOutcome.DENY. Negative permissions have precedence over positive
permissions.performer - the user under whose authority the grant operation is performedoutcome - whether operations under the specified permissions are allowed or deniedkind - whether permission is granted to access the resource or control access to itpermissions - the list of permissions to be grantedresource - the resource whose access permissions are grantedgrantee - the role receiving the permissionsCompletionStage tracking the progress of the grant operation.CompletionStage<Void> removePermissions(Actor performer, AuthorizationOutcome outcome, PermissionKind kind, Collection<AccessPermission> permissions, AuthorizedResource resource, EntitySelector grantee)
permissions on the specified resource from the
grantee. Note that revoking a negative permission is
essentially widening access to the resource.performer - the user under whose authority the revocation operation is performedoutcome - whether operations under the specified permissions are allowed or deniedkind - whether permission is granted to access the resource or control access to itpermissions - the list of permissions to be revokedresource - the resource whose access permissions are revokedgrantee - the role whose permissions are revokedCompletionStage tracking the progress of the grant operation.Copyright © 2022. All rights reserved.