Class CertificateChainValidationFailureEvent
java.lang.Object
com.itextpdf.signatures.validation.events.CertificateChainValidationFailureEvent
- All Implemented Interfaces:
-
IEvent,IValidationEvent
This event is triggered when a certificates chain validation fails.
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateChainValidationFailureEvent(X509Certificate certificate, boolean isInconclusive, String reason) Creates a new event instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the validated certificate.Returns the event type of the event, this fields is used to avoid instanceof usage.Returns the reason the validation failed.booleanReturns whether the validation result was conclusive.
-
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
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
Returns the reason the validation failed.- Returns:
- the reason the validation failed
-
getEventType
Returns the event type of the event, this fields is used to avoid instanceof usage.- Specified by:
-
getEventTypein interfaceIValidationEvent - Returns:
- the event type of the event
-