protected static enum AbstractVaultProviderFactory.AvailableResolvers extends Enum<AbstractVaultProviderFactory.AvailableResolvers>
VaultKeyResolver
s. The name used in the factory configuration must match the
name one of the enum members.Enum Constant and Description |
---|
FACTORY_PROVIDED
The format of the vault key is determined by the factory's
getFactoryResolver implementation. |
KEY_ONLY
Ignores the realm, only the vault key is used when retrieving a secret from the vault.
|
REALM_FILESEPARATOR_KEY
The realm is prepended to the vault key and they are separated by the platform file separator character.
|
REALM_UNDERSCORE_KEY
The realm is prepended to the vault key and they are separated by an underscore (
'_' ) character. |
Modifier and Type | Method and Description |
---|---|
static AbstractVaultProviderFactory.AvailableResolvers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractVaultProviderFactory.AvailableResolvers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractVaultProviderFactory.AvailableResolvers KEY_ONLY
public static final AbstractVaultProviderFactory.AvailableResolvers REALM_UNDERSCORE_KEY
'_'
) character. If either
the realm or the key contains an underscore, it is escaped by another underscore character.public static final AbstractVaultProviderFactory.AvailableResolvers REALM_FILESEPARATOR_KEY
public static final AbstractVaultProviderFactory.AvailableResolvers FACTORY_PROVIDED
getFactoryResolver
implementation. This allows
for the customization of the vault key format by extending the factory and overriding the getFactoryResolver
method. It is instantiated with a null resolver because we can't access the factory from the enum's static context.public static AbstractVaultProviderFactory.AvailableResolvers[] values()
for (AbstractVaultProviderFactory.AvailableResolvers c : AbstractVaultProviderFactory.AvailableResolvers.values()) System.out.println(c);
public static AbstractVaultProviderFactory.AvailableResolvers valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 JBoss by Red Hat. All rights reserved.