Package org.forgerock.secrets.vault
Enum Class VaultKeyValueSecretStore.SecretField
java.lang.Object
java.lang.Enum<VaultKeyValueSecretStore.SecretField>
org.forgerock.secrets.vault.VaultKeyValueSecretStore.SecretField
- All Implemented Interfaces:
Serializable
,Comparable<VaultKeyValueSecretStore.SecretField>
,java.lang.constant.Constable
,BiFunction<SecretBuilder,
,JsonValue, Promise<SecretBuilder, NoSuchSecretException>> VaultKeyValueSecretStore.SecretFieldDecoder
- Enclosing class:
- VaultKeyValueSecretStore
public static enum VaultKeyValueSecretStore.SecretField
extends Enum<VaultKeyValueSecretStore.SecretField>
implements VaultKeyValueSecretStore.SecretFieldDecoder
Standard implementations of
VaultKeyValueSecretStore.SecretFieldDecoder
for common fields.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPopulates key usage constraints from a JSON array of WebCrypto key usage names.Populates the raw data of a secret as a UTF-8 password using the string value of the JSON.The PEM property format can populate multiple fields of aSecretBuilder
using the Privacy Enhanced Mail (PEM) format for keys and certificates.Populates the raw data of a secret as the binary data resulting from Base64-decoding the string JSON value.Populates theSecretBuilder.stableId(String)
of the secret based on the JSON string value. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static VaultKeyValueSecretStore.SecretField[]
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 java.util.function.BiFunction
andThen
Methods inherited from interface org.forgerock.secrets.vault.VaultKeyValueSecretStore.SecretFieldDecoder
apply
-
Enum Constant Details
-
PEM
The PEM property format can populate multiple fields of aSecretBuilder
using the Privacy Enhanced Mail (PEM) format for keys and certificates. If multiple PEM objects are present in the data then then will all be decoded. -
STABLE_ID
Populates theSecretBuilder.stableId(String)
of the secret based on the JSON string value. -
PASSWORD
Populates the raw data of a secret as a UTF-8 password using the string value of the JSON. -
RAW_DATA_BASE64
Populates the raw data of a secret as the binary data resulting from Base64-decoding the string JSON value. -
KEY_USAGE
Populates key usage constraints from a JSON array of WebCrypto key usage names.
-
-
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
-