public interface SecretStoreProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
ATLASSIAN_PASSWORD_CIPHER_PROVIDER_PROPERTY_KEY
properties key that stores the cipher class
|
static String |
ATLASSIAN_PASSWORD_CIPHER_PROVIDER_XML_KEY
xml key which can be used by products to store canonical class name
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultSecretStoreClassName() |
Optional<SecretStore> |
getInstance(String cipherProviderClassName)
Creates a new instance of
SecretStore every time it's called. |
static final String ATLASSIAN_PASSWORD_CIPHER_PROVIDER_XML_KEY
static final String ATLASSIAN_PASSWORD_CIPHER_PROVIDER_PROPERTY_KEY
String getDefaultSecretStoreClassName()
Optional<SecretStore> getInstance(String cipherProviderClassName)
SecretStore every time it's called.
Is not caching or storing created instance.
In case cipherProviderClassName is null or empty returns Optional.empty()
In case not being able to create an instance logs an error message and throws an ExceptioncipherProviderClassName - canonical name of the Class which implements SecretStore and should be instantiated.SecretStore packed inside Optional or Optional.empty() in case passed param is null or empty.IllegalArgumentException - in case of ClassNotFoundException, InstantiationException or IllegalAccessExceptionCopyright © 2023 Atlassian. All rights reserved.