public interface CipherProvider
| Modifier and Type | Field and Description |
|---|---|
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 |
getDefaultCipherProviderClassName() |
Optional<Cipher> |
getInstance(String cipherProviderClassName)
Creates a new instance of
Cipher every time it's called. |
static final String ATLASSIAN_PASSWORD_CIPHER_PROVIDER_XML_KEY
String getDefaultCipherProviderClassName()
Optional<Cipher> getInstance(String cipherProviderClassName)
Cipher 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 Cipher and should be initiated.Cipher packed inside Optional or Optional.empty() in case passed param is null or empty.IllegalArgumentException - in case of ClassNotFoundException, InstantiationException or IllegalAccessExceptionCopyright © 2019 Atlassian. All rights reserved.