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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidauthorize(ClientState state) Perform any access verification necessary for the statement.execute(ClientState state) Provides the context needed for audit logging statements.voidvalidate(ClientState state) Perform additional validation required by the statment.Methods inherited from class org.apache.cassandra.cql3.statements.AuthenticationStatement
checkPermission, execute, executeLocally, obfuscatePassword, prepareMethods inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
setBindVariablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
Constructor Details
-
AddIdentityStatement
-
-
Method Details
-
authorize
Description copied from interface:CQLStatementPerform any access verification necessary for the statement.- Parameters:
state- the current client state
-
validate
Description copied from interface:CQLStatementPerform additional validation required by the statment. To be overriden by subclasses if needed.- Parameters:
state- the current client state
-
getAuditLogContext
Description copied from interface:CQLStatementProvides the context needed for audit logging statements. -
execute
public ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException - Specified by:
executein classAuthenticationStatement- Throws:
RequestExecutionExceptionRequestValidationException
-