- All Known Implementing Classes:
AbstractConfigCryptoProvider,DefaultConfigCryptoProvider,PooledConfigCryptoProvider
@API(status=STABLE,
since="1.0")
public interface ConfigCryptoProvider
Provider of cryptographic transformations for configuration values.
- Since:
- 0.2
- Version:
- 1.0, 2020-04
- Author:
- (w) Iker Hernaez
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull CryptoProviderEngineBuilderbuilder()Creates a new cryptography transformations provider builder.Decrypts the specified encrypted configuration value.voiddestroy()Destroys all secret information.Encrypts the specified plain configuration value.
-
Method Details
-
builder
Creates a new cryptography transformations provider builder.- Returns:
- The provider builder.
-
encrypt
Encrypts the specified plain configuration value.- Parameters:
value- The plain configuration value- Returns:
- The encrypted configuration value
- Throws:
ConfigCryptoProviderException- If an exception occurs during the encryption process
-
decrypt
Decrypts the specified encrypted configuration value.- Parameters:
value- The encrypted configuration value- Returns:
- The plain configuration value
- Throws:
ConfigCryptoProviderException- If an exception occurs during the decryption process
-
destroy
void destroy()Destroys all secret information. Any further call to the instance will throw anIllegalStateException.- Throws:
ConfigCryptoProviderException- If an error occurs destroying the secret information.
-