Class CRLRevocationChecker
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.revocation.CRLRevocationChecker
-
- All Implemented Interfaces:
RevocationChecker
public class CRLRevocationChecker extends java.lang.Object implements RevocationChecker
Implementation ofRevocationCheckerusing CRLs, theRFC3280CertPathUtilitiesCanl.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<?>certificatesprivate CrlCheckingModecheckingModeprivate org.bouncycastle.jcajce.util.JcaJceHelperjcaHelperprivate ExtPKIXParameters2paramsPKIXprivate java.util.DatevalidDateprivate java.security.PublicKeyworkingPublicKey
-
Constructor Summary
Constructors Constructor Description CRLRevocationChecker(ExtPKIXParameters2 paramsPKIX, java.util.Date validDate, java.security.PublicKey workingPublicKey, java.util.List<?> certificates, CrlCheckingMode checkingMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RevocationStatuscheckRevocation(java.security.cert.X509Certificate certitifcate, java.security.cert.X509Certificate issuer)Checks revocation.
-
-
-
Field Detail
-
paramsPKIX
private ExtPKIXParameters2 paramsPKIX
-
validDate
private java.util.Date validDate
-
workingPublicKey
private java.security.PublicKey workingPublicKey
-
certificates
private java.util.List<?> certificates
-
checkingMode
private CrlCheckingMode checkingMode
-
jcaHelper
private org.bouncycastle.jcajce.util.JcaJceHelper jcaHelper
-
-
Constructor Detail
-
CRLRevocationChecker
public CRLRevocationChecker(ExtPKIXParameters2 paramsPKIX, java.util.Date validDate, java.security.PublicKey workingPublicKey, java.util.List<?> certificates, CrlCheckingMode checkingMode)
-
-
Method Detail
-
checkRevocation
public RevocationStatus checkRevocation(java.security.cert.X509Certificate certitifcate, java.security.cert.X509Certificate issuer) throws SimpleValidationErrorException
Description copied from interface:RevocationCheckerChecks revocation.- Specified by:
checkRevocationin interfaceRevocationChecker- Parameters:
certitifcate- certificateissuer- issuer- Returns:
- whether the revocation was successfully checked or if the status is unknown.
- Throws:
SimpleValidationErrorException- if revocation validation finished with error, in particular also when certificate is revoked.
-
-