public abstract class AuthenticationStatement extends CQLStatement.Raw implements CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
bindVariables
Constructor and Description |
---|
AuthenticationStatement() |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(ClientState state,
Permission required,
RoleResource resource) |
abstract ResultMessage |
execute(ClientState state) |
ResultMessage |
execute(QueryState state,
QueryOptions options,
long queryStartNanoTime)
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) |
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions, validate
public AuthenticationStatement prepare(ClientState state)
prepare
in class CQLStatement.Raw
public ResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime) throws RequestExecutionException, RequestValidationException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)queryStartNanoTime
- the timestamp returned by System.nanoTime() when this statement was receivedRequestExecutionException
RequestValidationException
public abstract ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
public ResultMessage executeLocally(QueryState state, QueryOptions options)
CQLStatement
executeLocally
in interface CQLStatement
state
- the current query statepublic void checkPermission(ClientState state, Permission required, RoleResource resource) throws UnauthorizedException
UnauthorizedException
public java.lang.String obfuscatePassword(java.lang.String query)
Copyright © 2009- The Apache Software Foundation