Class TimestampCertificateValidator
java.lang.Object
fr.gouv.vitam.worker.core.plugin.traceability.TimestampCertificateValidator
Validates the TSA signing certificate extracted from an RFC 3161 timestamp token against a truststore.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TimestampCertificateValidator
public TimestampCertificateValidator()
-
-
Method Details
-
validate
public void validate(org.bouncycastle.cert.X509CertificateHolder certHolder, Date genTime, KeyStore trustStore) throws TrustValidationException ValidatescertHolderagainsttrustStoreusinggenTimeas the reference date.- Parameters:
certHolder- the TSA signing certificate embedded in the timestamp tokengenTime- the date at which the timestamp token was generated (token genTime)trustStore- the operator-configured truststore- Throws:
TrustValidationException- withTraceabilityError.CERTIFICATE_NOT_VALID_AT_SIGNATURE_DATEif the certificate was not valid at genTime, or withTraceabilityError.UNSUPPORTED_CERTIFICATEif the certificate cannot be converted or the PKIX chain validation fails
-