Class EncryptionService

java.lang.Object
org.qubership.atp.itf.lite.backend.service.EncryptionService

@Service public class EncryptionService extends Object
  • 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

      public String decrypt(String value) throws org.qubership.atp.crypt.exception.AtpDecryptException
      Throws:
      org.qubership.atp.crypt.exception.AtpDecryptException
    • encrypt

      public String encrypt(String value) throws org.qubership.atp.crypt.exception.AtpEncryptException
      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

      public boolean isEncrypted(String value)
    • decodeBase64

      public String decodeBase64(String source)
    • encodeBase64

      public String encodeBase64(String source)