public class InMemorySecretRepository extends Object implements SecretRepository
| Constructor and Description |
|---|
InMemorySecretRepository() |
public Secret get(String subject) throws SecretEncryptionException
get in interface SecretRepositorySecretEncryptionExceptionpublic Optional<Secret> tryToGet(String subject) throws SecretReadException
tryToGet in interface SecretRepositorySecretReadExceptionpublic void save(String subject, Secret secret)
save in interface SecretRepositoryCopyright © 2020. All rights reserved.