Package org.apache.cassandra.auth
Enum Class Permission
- All Implemented Interfaces:
Serializable,Comparable<Permission>,Constable
An enum encapsulating the set of possible permissions that an authenticated user can have on a resource.
IAuthorizer implementations may encode permissions using ordinals, so the Enum order must never change order.
Adding new values is ok.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<Permission>static final Set<Permission>Set of Permissions which may never be granted on any system keyspace, or table in a system keyspace, to any role.static final Set<Permission> -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionReturns the enum constant of this class with the specified name.static Permission[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
-
ALTER
-
DROP
-
SELECT
-
MODIFY
-
AUTHORIZE
-
DESCRIBE
-
EXECUTE
-
UNMASK
-
SELECT_MASKED
-
-
Field Details
-
ALL
-
NONE
-
INVALID_FOR_SYSTEM_KEYSPACES
Set of Permissions which may never be granted on any system keyspace, or table in a system keyspace, to any role. (Only SELECT, DESCRIBE and ALTER may ever be granted).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-