Package com.atlassian.crowd.embedded.api
Interface SwitchableEncryptor
- All Superinterfaces:
Encryptor
-
Method Summary
Modifier and TypeMethodDescriptionvoidswitchEncryptor(String encryptorKey) Switches theEncryptorto the one specified byencryptorKeyor disable encryption whenencryptorKeyis null.Methods inherited from interface com.atlassian.crowd.embedded.api.Encryptor
changeEncryptionKey, decrypt, encrypt
-
Method Details
-
switchEncryptor
Switches theEncryptorto the one specified byencryptorKeyor disable encryption whenencryptorKeyis null.- Parameters:
encryptorKey- identifies one of theEncryptoror no encryption when null.- Throws:
IllegalArgumentException- if providedencryptorKeyis not available
-
getAvailableEncryptorKeys
Collection<String> getAvailableEncryptorKeys()- Returns:
- available encryptors' keys
-
getCurrentEncryptorKey
- Returns:
- key of the currently used
EncryptororOptional.empty()when encryption is disabled
-