Class AddIdentityStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthenticationStatement
-
- org.apache.cassandra.cql3.statements.AddIdentityStatement
-
- All Implemented Interfaces:
CQLStatement
public class AddIdentityStatement extends AuthenticationStatement
Cqlsh statement to add identity into roles_to_identity table for storing authorized identities for mTLS connections. Performs some checks before adding the identity to roles table. EX: ADD IDENTITY 'testIdentity' TO ROLE 'testRole'
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables
-
-
Constructor Summary
Constructors Constructor Description AddIdentityStatement(java.lang.String identity, java.lang.String role, boolean ifNotExists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authorize(ClientState state)
Perform any access verification necessary for the statement.ResultMessage
execute(ClientState state)
AuditLogContext
getAuditLogContext()
Provides the context needed for audit logging statements.void
validate(ClientState state)
Perform additional validation required by the statment.-
Methods inherited from class org.apache.cassandra.cql3.statements.AuthenticationStatement
checkPermission, execute, executeLocally, obfuscatePassword, prepare
-
Methods inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
setBindVariables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
-
-
-
Method Detail
-
authorize
public void authorize(ClientState state)
Description copied from interface:CQLStatement
Perform any access verification necessary for the statement.- Parameters:
state
- the current client state
-
validate
public void validate(ClientState state)
Description copied from interface:CQLStatement
Perform additional validation required by the statment. To be overriden by subclasses if needed.- Parameters:
state
- the current client state
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatement
Provides the context needed for audit logging statements.
-
execute
public ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
- Specified by:
execute
in classAuthenticationStatement
- Throws:
RequestExecutionException
RequestValidationException
-
-