Class CertificateChainValidationFailureEvent

java.lang.Object
com.itextpdf.signatures.validation.events.CertificateChainValidationFailureEvent
All Implemented Interfaces:
IEvent, IValidationEvent

public class CertificateChainValidationFailureEvent extends Object implements IValidationEvent
This event is triggered when a certificates chain validation fails.
  • Constructor Details

    • CertificateChainValidationFailureEvent

      public CertificateChainValidationFailureEvent (X509Certificate certificate, boolean isInconclusive, String reason)
      Creates a new event instance.
      Parameters:
      certificate - the validated certificate
      isInconclusive - whether the validation result was conclusive
      reason - the reason the validation failed
  • Method Details

    • getCertificate

      public X509Certificate getCertificate()
      Returns the validated certificate.
      Returns:
      the validated certificate
    • isInconclusive

      public boolean isInconclusive()
      Returns whether the validation result was conclusive.
      Returns:
      whether the validation result was conclusive
    • getReason

      public String getReason()
      Returns the reason the validation failed.
      Returns:
      the reason the validation failed
    • getEventType

      public EventType getEventType()
      Returns the event type of the event, this fields is used to avoid instanceof usage.
      Specified by:
      getEventType in interface IValidationEvent
      Returns:
      the event type of the event