Bouncy Castle Cryptography 1.20

org.bouncycastle.jce.provider
Class PKIXCertPathValidatorSpi

java.lang.Object
  |
  +--java.security.cert.CertPathValidatorSpi
        |
        +--org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi

public class PKIXCertPathValidatorSpi
extends CertPathValidatorSpi

CertPathValidatorSpi implemenation for X.509 Certificate validation.

TODO: add policy, namespaces and subtree restriction checking


Constructor Summary
PKIXCertPathValidatorSpi()
           
 
Method Summary
 CertPathValidatorResult engineValidate(CertPath certPath, CertPathParameters params)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKIXCertPathValidatorSpi

public PKIXCertPathValidatorSpi()
Method Detail

engineValidate

public CertPathValidatorResult engineValidate(CertPath certPath,
                                              CertPathParameters params)
                                       throws CertPathValidatorException,
                                              InvalidAlgorithmParameterException
Description copied from class: CertPathValidatorSpi
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.

Specified by:
engineValidate in class CertPathValidatorSpi
Parameters:
certPath - the CertPath to be validated
params - the algorithm parameters
Returns:
the result of the validation algorithm
Throws:
InvalidAlgorithmParameterException - if the specified parameters or the type of the specified CertPath are inappropriate for this CertPathValidator
CertPathValidatorException - if the CertPath does not validate

Bouncy Castle Cryptography 1.20