Package com.atlassian.crowd.embedded.api
Interface SwitchableEncryptor
- All Superinterfaces:
Encryptor
- All Known Implementing Classes:
ClusterLockingEncryptor
,PrefixBasedSwitchableEncryptor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
switchEncryptor
(String encryptorKey) Switches theEncryptor
to the one specified byencryptorKey
or disable encryption whenencryptorKey
is null.Methods inherited from interface com.atlassian.crowd.embedded.api.Encryptor
changeEncryptionKey, decrypt, encrypt
-
Method Details
-
switchEncryptor
Switches theEncryptor
to the one specified byencryptorKey
or disable encryption whenencryptorKey
is null.- Parameters:
encryptorKey
- identifies one of theEncryptor
or no encryption when null.- Throws:
IllegalArgumentException
- if providedencryptorKey
is not available
-
getAvailableEncryptorKeys
Collection<String> getAvailableEncryptorKeys()- Returns:
- available encryptors' keys
-
getCurrentEncryptorKey
- Returns:
- key of the currently used
Encryptor
orOptional.empty()
when encryption is disabled
-