java.lang.Object
com.aquima.interactions.foundation.security.r4.Decryptor
All Implemented Interfaces:
IDecryptor

public class Decryptor extends Object implements IDecryptor
This class is responsible for decrypting an envelope using the certificate it is constructed with.
Since:
5.1
Author:
m.hesselink
  • Constructor Details

    • Decryptor

      public Decryptor(DesCertificate certificate)
      Constructs the decryptor with the certificate that should be used.
      Parameters:
      certificate - The certificate that should be used for decrypting.
      Throws:
      CryptoGraphicException - This exception is thrown when an invalid certificate is passed to the constructor.
  • Method Details

    • decrypt

      public void decrypt(IEnvelope envelope)
      Description copied from interface: IDecryptor
      Decrypt the envelope.
      Specified by:
      decrypt in interface IDecryptor
      Parameters:
      envelope - envelope to decrypt