public interface SwitchableEncryptor extends Encryptor
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getAvailableEncryptorKeys() |
Optional<String> |
getCurrentEncryptorKey() |
void |
switchEncryptor(String encryptorKey)
Switches the
Encryptor to the one specified by encryptorKey or disable encryption when
encryptorKey is null. |
changeEncryptionKey, decrypt, encryptvoid switchEncryptor(@Nullable String encryptorKey)
Encryptor to the one specified by encryptorKey or disable encryption when
encryptorKey is null.encryptorKey - identifies one of the Encryptor or no encryption when null.IllegalArgumentException - if provided encryptorKey is not availableCollection<String> getAvailableEncryptorKeys()
Optional<String> getCurrentEncryptorKey()
Encryptor or Optional.empty() when encryption is disabledCopyright © 2024 Atlassian. All rights reserved.