Class EncryptorAesGcm
- java.lang.Object
-
- org.correomqtt.business.encryption.EncryptorAesGcm
-
-
Field Summary
Fields Modifier and Type Field Description static StringENCRYPTION_TRANSFORMATION
-
Constructor Summary
Constructors Constructor Description EncryptorAesGcm(String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(String encryptedData)Stringencrypt(String dataToEncrypt)StringgetEncryptionTranslation()StringpasswordsDTOtoString(PasswordsDTO passwordsDTO)
-
-
-
Field Detail
-
ENCRYPTION_TRANSFORMATION
public static final String ENCRYPTION_TRANSFORMATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptorAesGcm
public EncryptorAesGcm(String password)
-
-
Method Detail
-
decrypt
public String decrypt(String encryptedData) throws EncryptionRecoverableException
- Specified by:
decryptin interfaceEncryptor- Throws:
EncryptionRecoverableException
-
encrypt
public String encrypt(String dataToEncrypt) throws EncryptionRecoverableException
- Specified by:
encryptin interfaceEncryptor- Throws:
EncryptionRecoverableException
-
passwordsDTOtoString
public String passwordsDTOtoString(PasswordsDTO passwordsDTO)
- Specified by:
passwordsDTOtoStringin interfaceEncryptor
-
getEncryptionTranslation
public String getEncryptionTranslation()
- Specified by:
getEncryptionTranslationin interfaceEncryptor
-
-