Top Description Fields Constructors Methods
org.bouncycastle.jce.provider

public Class PKIXCertPathValidatorSpi_8

extends CertPathValidatorSpi
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, .PublicKey, java.security.cert.CertPath, .CertPathParameters, .CertPathValidatorException, .CertPathValidatorResult, .CertPathValidatorSpi, .CertificateEncodingException, .PKIXCertPathChecker, .PKIXCertPathValidatorResult, .PKIXParameters, .PKIXRevocationChecker, .TrustAnchor, .X509Certificate, java.util.ArrayList, .Date, .HashSet, .Iterator, .List, .Set, org.bouncycastle.asn1.ASN1Encodable, .ASN1ObjectIdentifier, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .Extension, .TBSCertificate, org.bouncycastle.jcajce.PKIXCertRevocationChecker, .PKIXExtendedBuilderParameters, .PKIXExtendedParameters, org.bouncycastle.jcajce.interfaces.BCX509Certificate, org.bouncycastle.jcajce.util.BCJcaJceHelper, .JcaJceHelper, org.bouncycastle.jce.exception.ExtCertPathValidatorException, org.bouncycastle.x509.ExtendedPKIXParameters

CertPathValidatorSpi implementation for X.509 Certificate validation � la RFC 3280.

Field Summary

Modifier and TypeField and Description
private final JcaJceHelper
private final boolean

Constructor Summary

AccessConstructor and Description
public
public
PKIXCertPathValidatorSpi_8(boolean isForCRLCheck)

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
public PKIXCertPathChecker
engineGetRevocationChecker()

Overrides java.security.cert.CertPathValidatorSpi.engineGetRevocationChecker.

Returns a CertPathChecker that this implementation uses to check the revocation status of certificates.

public CertPathValidatorResult
engineValidate(CertPath
the CertPath to be validated
certPath
,
CertPathParameters
the algorithm parameters
params
)

Implements abstract java.security.cert.CertPathValidatorSpi.engineValidate.

Validates the specified certification path using the specified algorithm parameter set.

Field Detail

helperback to summary
private final JcaJceHelper helper
isForCRLCheckback to summary
private final boolean isForCRLCheck

Constructor Detail

PKIXCertPathValidatorSpi_8back to summary
public PKIXCertPathValidatorSpi_8()
PKIXCertPathValidatorSpi_8back to summary
public PKIXCertPathValidatorSpi_8(boolean isForCRLCheck)

Method Detail

checkCertificateback to summary
pack-priv static void checkCertificate(X509Certificate cert) throws AnnotatedException
engineGetRevocationCheckerback to summary
public PKIXCertPathChecker engineGetRevocationChecker()

Overrides java.security.cert.CertPathValidatorSpi.engineGetRevocationChecker.

Doc from java.security.cert.CertPathValidatorSpi.engineGetRevocationChecker.

Returns a CertPathChecker that this implementation uses to check the revocation status of certificates. A PKIX implementation returns objects of type PKIXRevocationChecker.

The primary purpose of this method is to allow callers to specify additional input parameters and options specific to revocation checking. See the class description of CertPathValidator for an example.

This method was added to version 1.8 of the Java Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method cannot be abstract and by default throws an UnsupportedOperationException.

Returns:PKIXCertPathChecker

a CertPathChecker that this implementation uses to check the revocation status of certificates

engineValidateback to summary
public CertPathValidatorResult engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException

Implements abstract java.security.cert.CertPathValidatorSpi.engineValidate.

Doc from java.security.cert.CertPathValidatorSpi.engineValidate.

Validates the specified certification path using the specified algorithm parameter set.

The CertPath specified must be of a type that is supported by the validation algorithm, otherwise an InvalidAlgorithmParameterException will be thrown. For example, a CertPathValidator that implements the PKIX algorithm validates CertPath objects of type X.509.

Parameters
certPath:CertPath

the CertPath to be validated

params:CertPathParameters

the algorithm parameters

Returns:CertPathValidatorResult

the result of the validation algorithm

Exceptions
CertPathValidatorException:
if the CertPath does not validate
InvalidAlgorithmParameterException:
if the specified parameters or the type of the specified CertPath are inappropriate for this CertPathValidator