java.lang.Object
com.aquima.interactions.foundation.security.r4.Encryptor
All Implemented Interfaces:
IEncryptor

public class Encryptor extends Object implements IEncryptor
This class is used to encrypt an envelope using the certificate passed to the constructor.
Since:
5.1
Author:
m.hesselink
  • Constructor Details

    • Encryptor

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

    • encrypt

      public void encrypt(IEnvelope envelope)
      Description copied from interface: IEncryptor
      encrypt the envelope.
      Specified by:
      encrypt in interface IEncryptor
      Parameters:
      envelope - the envelope to encrypt