Package com.atlassian.crowd.crypto
Class PrefixBasedSwitchableEncryptor
java.lang.Object
com.atlassian.crowd.crypto.PrefixBasedSwitchableEncryptor
- All Implemented Interfaces:
Encryptor,SwitchableEncryptor
-
Constructor Summary
ConstructorsConstructorDescriptionPrefixBasedSwitchableEncryptor(EncryptionSettings encryptionSettings, Map<String, Encryptor> encryptors) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected EncryptorgetEncryptor(String encryptorKey) voidswitchEncryptor(String encryptorKey)
-
Constructor Details
-
PrefixBasedSwitchableEncryptor
public PrefixBasedSwitchableEncryptor(EncryptionSettings encryptionSettings, Map<String, Encryptor> encryptors)
-
-
Method Details
-
encrypt
-
getEncryptor
-
decrypt
-
switchEncryptor
- Specified by:
switchEncryptorin interfaceSwitchableEncryptor
-
changeEncryptionKey
public boolean changeEncryptionKey()- Specified by:
changeEncryptionKeyin interfaceEncryptor
-
getAvailableEncryptorKeys
- Specified by:
getAvailableEncryptorKeysin interfaceSwitchableEncryptor
-
getCurrentEncryptorKey
- Specified by:
getCurrentEncryptorKeyin interfaceSwitchableEncryptor
-