Class Encryptor
java.lang.Object
com.aquima.interactions.foundation.security.r4.Encryptor
- All Implemented Interfaces:
IEncryptor
This class is used to encrypt an envelope using the certificate passed to the constructor.
- Since:
- 5.1
- Author:
- m.hesselink
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptor
(DesCertificate certificate) Constructs the encryptor with the certificate that should be used. -
Method Summary
-
Constructor Details
-
Encryptor
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
Description copied from interface:IEncryptor
encrypt the envelope.- Specified by:
encrypt
in interfaceIEncryptor
- Parameters:
envelope
- the envelope to encrypt- Throws:
CryptoGraphicException
- This exception is thrown when the envelope could not be encrypted.
-