public class CreateRoleStatement extends AuthenticationStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
bindVariables
Constructor and Description |
---|
CreateRoleStatement(RoleName name,
RoleOptions options,
DCPermissions dcPermissions,
boolean ifNotExists) |
Modifier and Type | Method and 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.
|
java.lang.String |
obfuscatePassword(java.lang.String query) |
java.lang.String |
toString() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
checkPermission, execute, executeLocally, prepare
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
public CreateRoleStatement(RoleName name, RoleOptions options, DCPermissions dcPermissions, boolean ifNotExists)
public void authorize(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
execute
in class AuthenticationStatement
RequestExecutionException
RequestValidationException
public java.lang.String toString()
toString
in class java.lang.Object
public AuditLogContext getAuditLogContext()
CQLStatement
public java.lang.String obfuscatePassword(java.lang.String query)
obfuscatePassword
in class AuthenticationStatement
Copyright © 2009-2022 The Apache Software Foundation