java.lang.Object
com.aquima.interactions.foundation.security.r4.Validator
All Implemented Interfaces:
IValidator

public final class Validator extends Object implements IValidator
Basic R4 envelope validator.
Since:
5.1
Author:
m.hesselink
  • Constructor Details

    • Validator

      public Validator(X509Certificate certificate)
      Create an new release 4 envelope validator.
      Parameters:
      certificate - The certificate for the validator.
      Throws:
      CryptoGraphicException - This exception is thrown when an invalid certificate is passed to the constructor.
  • Method Details

    • validate

      public void validate(IEnvelope envelope)
      Validate the envelope.
      Specified by:
      validate in interface IValidator
      Parameters:
      envelope - The envelope that should be validated.
      Throws:
      CryptoGraphicException - This exception is thrown when the envelope is not valid for the current certificate.