Package dev.enola.common.secret.auto
Class TestSecretManager
java.lang.Object
dev.enola.common.secret.ReadOnlySecretManager
dev.enola.common.secret.auto.TestSecretManager
- All Implemented Interfaces:
SecretManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOptional(String key) Retrieves a secret by its key, with optionality.Methods inherited from class dev.enola.common.secret.ReadOnlySecretManager
delete, storeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.secret.SecretManager
get
-
Constructor Details
-
TestSecretManager
public TestSecretManager()
-
-
Method Details
-
getOptional
Description copied from interface:SecretManagerRetrieves a secret by its key, with optionality.- Parameters:
key- The unique key (name) of the secret to retrieve.- Returns:
- An
Optionalcontaining theSecret, if found. - Throws:
IOException- If an error occurs while retrieving the secret.
-