public class X509RevocationChecker
extends java.security.cert.PKIXCertPathChecker
Modifier and Type | Class and Description |
---|---|
static class |
X509RevocationChecker.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
CHAIN_VALIDITY_MODEL
This model uses the following validity model.
|
protected static java.lang.String[] |
crlReasons |
static int |
PKIX_VALIDITY_MODEL
This is the default PKIX validity model.
|
Modifier and Type | Method and Description |
---|---|
void |
check(java.security.cert.Certificate certificate,
java.util.Collection<java.lang.String> collection) |
protected void |
checkCRLs(org.bouncycastle.jcajce.PKIXExtendedParameters pkixParams,
java.util.Date currentDate,
java.util.Date validityDate,
java.security.cert.X509Certificate cert,
java.security.cert.X509Certificate sign,
java.security.PublicKey workingPublicKey,
java.util.List certPathCerts,
org.bouncycastle.pkix.jcajce.PKIXJcaJceHelper helper)
Checks a certificate if it is revoked.
|
java.lang.Object |
clone() |
java.util.Set<java.lang.String> |
getSupportedExtensions() |
void |
init(boolean forward) |
boolean |
isForwardCheckingSupported() |
public static final int PKIX_VALIDITY_MODEL
PKIXParameters.setDate(Date)
method, so this
methods sets the Date when all certificates must have been
valid.public static final int CHAIN_VALIDITY_MODEL
PKIXParameters.setDate(Date)
method sets the time, when
the end certificate must have been valid. It is used e.g.
in the German signature law.protected static final java.lang.String[] crlReasons
public void init(boolean forward) throws java.security.cert.CertPathValidatorException
init
in interface java.security.cert.CertPathChecker
init
in class java.security.cert.PKIXCertPathChecker
java.security.cert.CertPathValidatorException
public boolean isForwardCheckingSupported()
isForwardCheckingSupported
in interface java.security.cert.CertPathChecker
isForwardCheckingSupported
in class java.security.cert.PKIXCertPathChecker
public java.util.Set<java.lang.String> getSupportedExtensions()
getSupportedExtensions
in class java.security.cert.PKIXCertPathChecker
public void check(java.security.cert.Certificate certificate, java.util.Collection<java.lang.String> collection) throws java.security.cert.CertPathValidatorException
check
in class java.security.cert.PKIXCertPathChecker
java.security.cert.CertPathValidatorException
protected void checkCRLs(org.bouncycastle.jcajce.PKIXExtendedParameters pkixParams, java.util.Date currentDate, java.util.Date validityDate, java.security.cert.X509Certificate cert, java.security.cert.X509Certificate sign, java.security.PublicKey workingPublicKey, java.util.List certPathCerts, org.bouncycastle.pkix.jcajce.PKIXJcaJceHelper helper) throws org.bouncycastle.pkix.jcajce.AnnotatedException, java.security.cert.CertPathValidatorException
pkixParams
- PKIX parameters.cert
- Certificate to check if it is revoked.validityDate
- The date when the certificate revocation status should be
checked.sign
- The issuer certificate of the certificate cert
.workingPublicKey
- The public key of the issuer certificate sign
.certPathCerts
- The certificates of the certification path.AnnotatedException
- if the certificate is revoked or the status cannot be checked
or some error occurs.java.security.cert.CertPathValidatorException
public java.lang.Object clone()
clone
in class java.security.cert.PKIXCertPathChecker