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