Class ConfigVaultProvider.EncryptionConfig
java.lang.Object
io.helidon.security.providers.config.vault.ConfigVaultProvider.EncryptionConfig
- All Implemented Interfaces:
ProviderConfig
- Enclosing class:
ConfigVaultProvider
Configuration of encryption.
Legacy flags configured on a named encryption entry override the provider-level defaults while still inheriting
the provider master password unless a password is configured on this entry.
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a new instance.create(char[] password) Create a new instance with custom password.create(char[] password, boolean legacyEncryption, boolean legacyFallback) Create a new instance with custom password and legacy encryption flags.Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance from config.
-
Method Details
-
create
Create a new instance.- Returns:
- new instance with default configuration
-
create
Create a new instance with custom password.- Parameters:
password- password to use- Returns:
- a new instance using the custom password
-
create
public static ConfigVaultProvider.EncryptionConfig create(char[] password, boolean legacyEncryption, boolean legacyFallback) Create a new instance with custom password and legacy encryption flags. These flags are temporary compatibility controls for rolling upgrades, not steady-state security settings.- Parameters:
password- password to uselegacyEncryption- whether data should be written using the legacy encrypted value formatlegacyFallback- whether decryption should retry with the alternate encrypted value format- Returns:
- a new instance using the custom password and legacy flags
-
create
@Deprecated(since="4.4.0", forRemoval=true) public static ConfigVaultProvider.EncryptionConfig create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadCreate a new instance from config.- Parameters:
config- config to read password and legacy flags from (if any)- Returns:
- a new instance configured from config
-
create
Create a new instance from config.- Parameters:
config- config to read password and legacy flags from (if any)- Returns:
- a new instance configured from config
-
create(io.helidon.config.Config)instead