Package com.atlassian.secrets.api
Interface SecretStoreProvider
Deprecated.
since 4.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getInstance(String cipherProviderClassName) Deprecated.Creates a new instance ofSecretStoreevery time it's called.
-
Field Details
-
ATLASSIAN_PASSWORD_CIPHER_PROVIDER_XML_KEY
Deprecated.xml key which can be used by products to store canonical class name- See Also:
-
ATLASSIAN_PASSWORD_CIPHER_PROVIDER_PROPERTY_KEY
Deprecated.properties key that stores the cipher class- See Also:
-
-
Method Details
-
getDefaultSecretStoreClassName
String getDefaultSecretStoreClassName()Deprecated.- Returns:
- default cipher which is already available in the class loader.
-
getInstance
Deprecated.Creates a new instance ofSecretStoreevery time it's called. Is not caching or storing created instance. In case cipherProviderClassName is null or empty returnsOptional.empty()In case not being able to create an instance logs an error message and throws anException- Parameters:
cipherProviderClassName- canonical name of theClasswhich implementsSecretStoreand should be instantiated.- Returns:
- new instance of
SecretStorepacked inside Optional orOptional.empty()in case passed param is null or empty. - Throws:
IllegalArgumentException- in case ofClassNotFoundException,InstantiationExceptionorIllegalAccessException
-