Interface ValidationAlerter
- All Known Implementing Classes:
SignatureValidationAlerter
public interface ValidationAlerter
This class used
eu.europa.esig.dss.spi.validation.ValidationContext to perform validation and
executes alerts based on the validation result.-
Method Summary
Modifier and TypeMethodDescriptionvoidThis method verifies if all POE (timestamp tokens) are covered by a revocation data.voidThis method verifies if all processed certificates have a revocation data.voidThis method verifies whether for all signature's certificate chain certificates there is a fresh revocation data, after the earliest available timestamp token production time.voidThis method verifies recursively whether none of the signature's certificate chain certificates are revoked.voidThis method verifies whether all signatures added to the ValidationContext have been produced with yet valid certificates.voidThis method verifies whether all signatures added to the ValidationContext are not yet expired.voidThis method verifies if all processed timestamps are valid and intact.voidassertCertificateIsYetValid(CertificateToken certificateToken) This method verifies whether the certificate token is yet valid.voidassertCertificateNotExpired(CertificateToken certificateToken) This method verifies whether the certificate token is not yet expired.voidassertCertificateNotRevoked(CertificateToken certificateToken) This method verifies if the certificate is not revoked.
-
Method Details
-
assertAllRequiredRevocationDataPresent
void assertAllRequiredRevocationDataPresent()This method verifies if all processed certificates have a revocation data. The behavior of the method is configured withCertificateVerifier.setAlertOnMissingRevocationData(eu.europa.esig.dss.alert.StatusAlert) -
assertAllPOECoveredByRevocationData
void assertAllPOECoveredByRevocationData()This method verifies if all POE (timestamp tokens) are covered by a revocation data. The behavior of the method is configured withCertificateVerifier.setAlertOnUncoveredPOE(eu.europa.esig.dss.alert.StatusAlert) -
assertAllTimestampsValid
void assertAllTimestampsValid()This method verifies if all processed timestamps are valid and intact. The behavior of the method is configured withCertificateVerifier.setAlertOnInvalidTimestamp(eu.europa.esig.dss.alert.StatusAlert) -
assertCertificateNotRevoked
This method verifies if the certificate is not revoked. The behavior of the method is configured withCertificateVerifier.setAlertOnRevokedCertificate(eu.europa.esig.dss.alert.StatusAlert)- Parameters:
certificateToken-CertificateTokencertificate to be checked
-
assertAllSignatureCertificatesNotRevoked
void assertAllSignatureCertificatesNotRevoked()This method verifies recursively whether none of the signature's certificate chain certificates are revoked. The behavior of the method is configured withCertificateVerifier.setAlertOnRevokedCertificate(eu.europa.esig.dss.alert.StatusAlert) -
assertAllSignatureCertificateHaveFreshRevocationData
void assertAllSignatureCertificateHaveFreshRevocationData()This method verifies whether for all signature's certificate chain certificates there is a fresh revocation data, after the earliest available timestamp token production time. The behavior of the method is configured withCertificateVerifier.setAlertOnNoRevocationAfterBestSignatureTime(eu.europa.esig.dss.alert.StatusAlert) -
assertAllSignaturesNotExpired
void assertAllSignaturesNotExpired()This method verifies whether all signatures added to the ValidationContext are not yet expired. The behavior of the method is configured withCertificateVerifier.setAlertOnExpiredCertificate(eu.europa.esig.dss.alert.StatusAlert) -
assertCertificateNotExpired
This method verifies whether the certificate token is not yet expired. The behavior of the method is configured withCertificateVerifier.setAlertOnExpiredCertificate(eu.europa.esig.dss.alert.StatusAlert)- Parameters:
certificateToken-CertificateTokento be validated
-
assertAllSignaturesAreYetValid
void assertAllSignaturesAreYetValid()This method verifies whether all signatures added to the ValidationContext have been produced with yet valid certificates. The behavior of the method is configured withCertificateVerifier.setAlertOnNotYetValidCertificate(eu.europa.esig.dss.alert.StatusAlert) -
assertCertificateIsYetValid
This method verifies whether the certificate token is yet valid. The behavior of the method is configured withCertificateVerifier.setAlertOnNotYetValidCertificate(eu.europa.esig.dss.alert.StatusAlert)- Parameters:
certificateToken-CertificateTokento be validated
-