Class EncryptionService
java.lang.Object
org.qubership.atp.itf.lite.backend.service.EncryptionService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.qubership.atp.crypt.api.Decryptorprotected org.qubership.atp.crypt.api.Encryptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeBase64(String source) decryptIfEncrypted(String value) encodeBase64(String source) booleanisEncrypted(String value)
-
Field Details
-
atpEncryptor
@Autowired protected org.qubership.atp.crypt.api.Encryptor atpEncryptor -
atpDecryptor
@Autowired protected org.qubership.atp.crypt.api.Decryptor atpDecryptor
-
-
Constructor Details
-
EncryptionService
public EncryptionService()
-
-
Method Details
-
decrypt
- Throws:
org.qubership.atp.crypt.exception.AtpDecryptException
-
encrypt
- Throws:
org.qubership.atp.crypt.exception.AtpEncryptException
-
decryptIfEncrypted
public String decryptIfEncrypted(String value) throws org.qubership.atp.crypt.exception.AtpDecryptException - Throws:
org.qubership.atp.crypt.exception.AtpDecryptException
-
isEncrypted
-
decodeBase64
-
encodeBase64
-