public class SigaCrlRevocationChecker extends PKIXCertPathChecker
PKIXCertPathChecker
that checks
revocation status information on a PKIX certificate using CRLs obtained from
one or more CertStores
. This is based on revision draft three
of rfc2459
(http://www.ietf.org/internet-drafts/draft-ietf-pkix-new-part1-02.txt).Constructor and Description |
---|
SigaCrlRevocationChecker(PublicKey initPubKey,
PKIXParameters params)
Creates a
CrlRevocationChecker . |
Modifier and Type | Method and Description |
---|---|
boolean |
certCanSignCrl(X509Certificate currCert)
Checks that a cert can be used to verify a CRL.
|
void |
check(Certificate cert,
Collection<String> unresolvedCritExts)
Performs the revocation status check on the certificate using its
internal state.
|
boolean |
check(X509Certificate currCert,
PublicKey prevKey,
boolean signFlag)
Performs the revocation status check on the certificate using the
provided state variables, as well as the constant internal data.
|
Set<String> |
getSupportedExtensions() |
void |
init(boolean forward)
Initializes the internal state of the checker from parameters specified
in the constructor
|
boolean |
isForwardCheckingSupported() |
clone
public SigaCrlRevocationChecker(PublicKey initPubKey, PKIXParameters params) throws CertPathValidatorException
CrlRevocationChecker
.initPubKey
- initial PublicKey in the pathparams
- PKIXParameters
to be used for finding
certificates and CRLs, etc.CertPathValidatorException
public void init(boolean forward) throws CertPathValidatorException
init
in class PKIXCertPathChecker
CertPathValidatorException
public boolean isForwardCheckingSupported()
isForwardCheckingSupported
in class PKIXCertPathChecker
public Set<String> getSupportedExtensions()
getSupportedExtensions
in class PKIXCertPathChecker
public void check(Certificate cert, Collection<String> unresolvedCritExts) throws CertPathValidatorException
check
in class PKIXCertPathChecker
cert
- the CertificateunresolvedCritExts
- a Collection of the unresolved critical extensionsCertPathValidatorException
- Exception thrown if certificate does not verifypublic boolean check(X509Certificate currCert, PublicKey prevKey, boolean signFlag) throws CertPathValidatorException
currCert
- the CertificateprevKey
- the previous PublicKey in the chainsignFlag
- a boolean as returned from the last call, or true if this is
the first cert in the chainCertPathValidatorException
- Exception thrown if certificate does not verify.public boolean certCanSignCrl(X509Certificate currCert)
currCert
- an X509Certificate to checkCopyright © 2015. All rights reserved.