Class AbstractPathValidator

java.lang.Object
se.swedenconnect.sigval.cert.chain.AbstractPathValidator
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CertificatePathValidator

public abstract class AbstractPathValidator extends Object implements Runnable
Abstract class for implementations of a certificate chain validator

This path validator is designed so that it can be used as the underlying path validator for a certificate validator that implements the inteface of CertificateValidator. This is done by 2 factors:

Editors note: This library does however not use the CertificateValidator interface as this interface requires implementation of functions where a CRL is provided as input to the validation process. Such procedure is not relevant for this path validator as it builds on the CRLCache implementation instead. To implement this interface you need the function provided in this class in addition to code that can make use of a separately provided CRL.

Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Field Details

  • Constructor Details

    • AbstractPathValidator

      protected AbstractPathValidator(X509Certificate targetCert, List<X509Certificate> chain, CRLCache crlCache, PathBuilder pathBuilder, List<TrustAnchor> trustAnchors, CertStore certStore, String id, PropertyChangeListener... propertyChangeListeners)
      Constructs the chain validator
      Parameters:
      targetCert - the certificate being validated
      chain - the supporting chain of certificates which may include the target certificate and root certificates
      crlCache - CRL cache providing access to certificate revocation lists
      pathBuilder - path builder used to find and verify the path to a trust anchor
      trustAnchors - a list of trust anchors that must be used to terminate the validated chain
      certStore - certificate store providing complementary intermediary certificates
      id - the name of the process returned to registered listeners
      propertyChangeListeners - listeners that are notified when the validation process is complete
  • Method Details