Class StatusCheckingCertificateValidatorImpl

java.lang.Object
se.swedenconnect.sigval.cert.chain.impl.StatusCheckingCertificateValidatorImpl
All Implemented Interfaces:
se.idsec.signservice.security.certificate.CertificateValidator, CertificatePathValidatorFactory

public class StatusCheckingCertificateValidatorImpl extends Object implements se.idsec.signservice.security.certificate.CertificateValidator, CertificatePathValidatorFactory
This is an implementation of the Certificate validator interface CertificateValidator in the sign service commons library. An instance of this interface can perform any number of validations based on validation data input. This implementation uses an implementation of the Runnable AbstractPathValidator class to perform path validation. Because the AbstractPathValidator is runnable that can be executed in a separate thread, it must be instantiated for every instance of validation. Because this class creates a new CertificatePathValidator for each instance of path validation, a Factory class is configured that provides instances of an implementation of the AbstractPathValidator. A default implementation of this factory is included here but this can be replaced by a setter. If you need to run path validation in an isolated thread as a runnable object, then use the CertificatePathValidator class directly instead of using this interface implementation.