Package io.stargate.auth
Enum PermissionKind
- java.lang.Object
-
- java.lang.Enum<PermissionKind>
-
- io.stargate.auth.PermissionKind
-
- All Implemented Interfaces:
Serializable,Comparable<PermissionKind>
public enum PermissionKind extends Enum<PermissionKind>
Indicates a permission is given to access a resource (e.g. query data) or to permit grating/revoking access to the resource to other users/roles.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionKindvalueOf(String name)Returns the enum constant of this type with the specified name.static PermissionKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESS
public static final PermissionKind ACCESS
Indicates the related permission controls access to the resource.This flag generally corresponds to
GRANT/REVOKE <permission>CQL statements.
-
AUTHORITY
public static final PermissionKind AUTHORITY
Indicates the related permission controls the authority to grant/revoke access the resource to other users.This flag generally corresponds to
GRANT/REVOKE AUTHORIZE FORCQL statements.
-
-
Method Detail
-
values
public static PermissionKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionKind c : PermissionKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-