Enum Class Policy.BuiltinCapabilities
java.lang.Object
java.lang.Enum<Policy.BuiltinCapabilities>
org.springframework.vault.support.Policy.BuiltinCapabilities
- All Implemented Interfaces:
Serializable
,Comparable<Policy.BuiltinCapabilities>
,Constable
,Policy.Capability
- Enclosing class:
- Policy
public static enum Policy.BuiltinCapabilities
extends Enum<Policy.BuiltinCapabilities>
implements Policy.Capability
Built-in Vault capabilities.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAllows creating data at the given path.Allows deleting the data at the given path.Disallows access.Allows listing values at the given path.Allows reading the data at the given path.Allows access to paths that are root-protected.Allows change the data at the given path.Deprecated.since 2.3 and Vault 0.5. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Policy.Capability>
crud()
static List<Policy.Capability>
static Policy.Capability
Find aPolicy.Capability
by its name.static Policy.BuiltinCapabilities
Returns the enum constant of this class with the specified name.static Policy.BuiltinCapabilities[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.vault.support.Policy.Capability
name
-
Enum Constant Details
-
CREATE
Allows creating data at the given path. Very few parts of Vault distinguish between create and update, so most operations require both create and update capabilities. -
READ
Allows reading the data at the given path. -
UPDATE
Allows change the data at the given path. In most parts of Vault, this implicitly includes the ability to create the initial value at the path. -
WRITE
Deprecated.since 2.3 and Vault 0.5. -
DELETE
Allows deleting the data at the given path. -
LIST
Allows listing values at the given path. Note that the keys returned by a list operation are not filtered by policies. Do not encode sensitive information in key names. Not all backends support listing. -
SUDO
Allows access to paths that are root-protected. Tokens are not permitted to interact with these paths unless they are have the sudo capability (in addition to the other necessary capabilities for performing an operation against that path, such as read or delete). -
DENY
Disallows access. This always takes precedence regardless of any other defined capabilities, includingSUDO
.
-
-
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
-
find
Find aPolicy.Capability
by its name. The name is compared case-insensitive.- Parameters:
value
- must not be null.- Returns:
- the
Policy.Capability
or null, if not found.
-
crud
- Returns:
- all CRUD operations.
- Since:
- 2.3
-
crudAndSudo
Return all capabilities (CREATE
,READ
,UPDATE
,DELETE
,LIST
) for regular CRUD operations includingSUDO
.- Returns:
- all CRUD operations including SUDO.
- Since:
- 2.3
-