Class CreateRoleStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthenticationStatement
-
- org.apache.cassandra.cql3.statements.CreateRoleStatement
-
- All Implemented Interfaces:
CQLStatement
public class CreateRoleStatement extends AuthenticationStatement
-
-
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 CreateRoleStatement(RoleName name, RoleOptions options, DCPermissions dcPermissions, CIDRPermissions cidrPermissions, boolean ifNotExists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.cassandra.cql3.statements.AuthenticationStatement
checkPermission, execute, executeLocally, prepare
-
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, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
-
-
-
Constructor Detail
-
CreateRoleStatement
public CreateRoleStatement(RoleName name, RoleOptions options, DCPermissions dcPermissions, CIDRPermissions cidrPermissions, boolean ifNotExists)
-
-
Method Detail
-
authorize
public void authorize(ClientState state) throws UnauthorizedException
Description copied from interface:CQLStatement
Perform any access verification necessary for the statement.- Parameters:
state
- the current client state- Throws:
UnauthorizedException
-
validate
public void validate(ClientState state) throws RequestValidationException
Description copied from interface:CQLStatement
Perform additional validation required by the statment. To be overriden by subclasses if needed.- Parameters:
state
- the current client state- Throws:
RequestValidationException
-
execute
public ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
- Specified by:
execute
in classAuthenticationStatement
- Throws:
RequestExecutionException
RequestValidationException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatement
Provides the context needed for audit logging statements.
-
obfuscatePassword
public java.lang.String obfuscatePassword(java.lang.String query)
- Overrides:
obfuscatePassword
in classAuthenticationStatement
-
-