Package dev.enola.common.secret
Class ReadOnlySecretManager
java.lang.Object
dev.enola.common.secret.ReadOnlySecretManager
- All Implemented Interfaces:
SecretManager
- Direct Known Subclasses:
EnvironmentSecretManager,JavaPropertySecretManager,TestSecretManager
-
Constructor Details
-
ReadOnlySecretManager
public ReadOnlySecretManager()
-
-
Method Details
-
store
Description copied from interface:SecretManagerStores a secret value associated with a unique key. The sensitive value is provided as a char array. Implementations will zero out the inputvaluearray immediately after calling this method for security. If a secret with the same key already exists, its value is overwritten.- Specified by:
storein interfaceSecretManager- Parameters:
key- The unique key (name) for the secret.value- The sensitive secret value as a character array.- Throws:
IOException- If an error occurs while storing the secret.
-
delete
Description copied from interface:SecretManagerDeletes a secret from the manager.- Specified by:
deletein interfaceSecretManager- Parameters:
key- The unique key (name) of the secret to delete.- Throws:
IOException- If an error occurs while deleting the secret.
-