public class AlterRoleStatement extends AuthenticationStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
bindVariables
Constructor and Description |
---|
AlterRoleStatement(RoleName name,
RoleOptions opts) |
AlterRoleStatement(RoleName name,
RoleOptions opts,
DCPermissions dcPermissions) |
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 AlterRoleStatement(RoleName name, RoleOptions opts)
public AlterRoleStatement(RoleName name, RoleOptions opts, DCPermissions dcPermissions)
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public void authorize(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthenticationStatement
RequestValidationException
RequestExecutionException
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