Package io.jmix.imap.crypto
Class DefaultEncryptor
java.lang.Object
io.jmix.imap.crypto.DefaultEncryptor
- All Implemented Interfaces:
Encryptor
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected final ImapEncryptionProperties
protected byte[]
protected SecretKey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AlgorithmParameterSpec
protected Cipher
getCipher
(int mode) getEncryptedPassword
(ImapMailBox mailBox) getPlainPassword
(ImapMailBox mailBox) protected String
saltedPassword
(ImapMailBox mailBox)
-
Field Details
-
ALGORITHM
- See Also:
-
encryptionProperties
-
secretKey
-
iv
protected byte[] iv
-
-
Constructor Details
-
DefaultEncryptor
-
-
Method Details
-
getEncryptedPassword
- Specified by:
getEncryptedPassword
in interfaceEncryptor
-
saltedPassword
-
getPlainPassword
- Specified by:
getPlainPassword
in interfaceEncryptor
-
getCipher
- Throws:
GeneralSecurityException
-
getAlgorithmParameterSpec
-