Class AuthenticationStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthenticationStatement
-
- All Implemented Interfaces:
CQLStatement
- Direct Known Subclasses:
AddIdentityStatement
,AlterRoleStatement
,CreateRoleStatement
,DropIdentityStatement
,DropRoleStatement
,RoleManagementStatement
public abstract class AuthenticationStatement extends CQLStatement.Raw implements CQLStatement
-
-
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 AuthenticationStatement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkPermission(ClientState state, Permission required, RoleResource resource)
abstract ResultMessage
execute(ClientState state)
ResultMessage
execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime)
Execute the statement and return the resulting result or null if there is no result.ResultMessage
executeLocally(QueryState state, QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.java.lang.String
obfuscatePassword(java.lang.String query)
AuthenticationStatement
prepare(ClientState state)
-
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
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions, validate
-
-
-
-
Method Detail
-
prepare
public AuthenticationStatement prepare(ClientState state)
- Specified by:
prepare
in classCQLStatement.Raw
-
execute
public ResultMessage execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) throws RequestExecutionException, RequestValidationException
Description copied from interface:CQLStatement
Execute the statement and return the resulting result or null if there is no result.- Specified by:
execute
in interfaceCQLStatement
- Parameters:
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)requestTime
- request enqueue / and start times;- Throws:
RequestExecutionException
RequestValidationException
-
execute
public abstract ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
-
executeLocally
public ResultMessage executeLocally(QueryState state, QueryOptions options)
Description copied from interface:CQLStatement
Variant of execute used for internal query against the system tables, and thus only query the local node.- Specified by:
executeLocally
in interfaceCQLStatement
- Parameters:
state
- the current query state
-
checkPermission
public void checkPermission(ClientState state, Permission required, RoleResource resource) throws UnauthorizedException
- Throws:
UnauthorizedException
-
obfuscatePassword
public java.lang.String obfuscatePassword(java.lang.String query)
-
-