Class CRLValidation
java.lang.Object
org.bouncycastle.cert.path.validations.CRLValidation
- All Implemented Interfaces:
CertPathValidation, org.bouncycastle.util.Memoable
-
Constructor Summary
ConstructorsConstructorDescriptionCRLValidation(org.bouncycastle.asn1.x500.X500Name trustAnchorName, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo trustAnchorKey, X509ContentVerifierProviderBuilder contentVerifierProvider, org.bouncycastle.util.Store crls) Base constructor for CRL based revocation checking with CRL signature verification.CRLValidation(org.bouncycastle.asn1.x500.X500Name trustAnchorName, org.bouncycastle.util.Store crls) Deprecated.this constructor cannot verify CRL signatures, so a matched CRL is rejected (fail-closed) rather than trusted. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.util.Memoablecopy()voidreset(org.bouncycastle.util.Memoable other) voidvalidate(CertPathValidationContext context, X509CertificateHolder certificate)
-
Constructor Details
-
CRLValidation
public CRLValidation(org.bouncycastle.asn1.x500.X500Name trustAnchorName, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo trustAnchorKey, X509ContentVerifierProviderBuilder contentVerifierProvider, org.bouncycastle.util.Store crls) Base constructor for CRL based revocation checking with CRL signature verification.- Parameters:
trustAnchorName- the name of the trust anchor the path starts from.trustAnchorKey- the public key of the trust anchor, used to verify the first CRL.contentVerifierProvider- builder for the verifier used to check CRL signatures.crls- a Store of the CRLs to consult.
-
CRLValidation
public CRLValidation(org.bouncycastle.asn1.x500.X500Name trustAnchorName, org.bouncycastle.util.Store crls) Deprecated.this constructor cannot verify CRL signatures, so a matched CRL is rejected (fail-closed) rather than trusted. UseCRLValidation(X500Name, SubjectPublicKeyInfo, X509ContentVerifierProviderBuilder, Store)so CRLs are checked against the issuer's key.
-
-
Method Details
-
validate
public void validate(CertPathValidationContext context, X509CertificateHolder certificate) throws CertPathValidationException - Specified by:
validatein interfaceCertPathValidation- Throws:
CertPathValidationException
-
copy
public org.bouncycastle.util.Memoable copy()- Specified by:
copyin interfaceorg.bouncycastle.util.Memoable
-
reset
public void reset(org.bouncycastle.util.Memoable other) - Specified by:
resetin interfaceorg.bouncycastle.util.Memoable
-