Package io.jmix.imap.crypto
Class DefaultEncryptor
java.lang.Object
io.jmix.imap.crypto.DefaultEncryptor
- All Implemented Interfaces:
Encryptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final ImapEncryptionPropertiesprotected byte[]protected SecretKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AlgorithmParameterSpecprotected CiphergetCipher(int mode) getEncryptedPassword(ImapMailBox mailBox) getPlainPassword(ImapMailBox mailBox) protected StringsaltedPassword(ImapMailBox mailBox)
-
Field Details
-
ALGORITHM
- See Also:
-
encryptionProperties
-
secretKey
-
iv
protected byte[] iv
-
-
Constructor Details
-
DefaultEncryptor
-
-
Method Details
-
getEncryptedPassword
- Specified by:
getEncryptedPasswordin interfaceEncryptor
-
saltedPassword
-
getPlainPassword
- Specified by:
getPlainPasswordin interfaceEncryptor
-
getCipher
- Throws:
GeneralSecurityException
-
getAlgorithmParameterSpec
-