java.security.cert
Class CertPathValidatorSpi

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.cert.CertPathValidatorSpi

public abstract class CertPathValidatorSpi
extends Object sample code for java.lang.Object definition code for java.lang.Object

The Service Provider Interface (SPI) for the CertPathValidator sample code for java.security.cert.CertPathValidator definition code for java.security.cert.CertPathValidator class. All CertPathValidator implementations must include a class (the SPI class) that extends this class (CertPathValidatorSpi) and implements all of its methods. In general, instances of this class should only be accessed through the CertPathValidator class. For details, see the Java Cryptography Architecture.

Concurrent Access

Instances of this class need not be protected against concurrent access from multiple threads. Threads that need to access a single CertPathValidatorSpi instance concurrently should synchronize amongst themselves and provide the necessary locking before calling the wrapping CertPathValidator object.

However, implementations of CertPathValidatorSpi may still encounter concurrency issues, since multiple threads each manipulating a different CertPathValidatorSpi instance need not synchronize.

Since:
1.4

Constructor Summary
CertPathValidatorSpi sample code for java.security.cert.CertPathValidatorSpi.CertPathValidatorSpi() definition code for java.security.cert.CertPathValidatorSpi.CertPathValidatorSpi() ()
          The default constructor.
 
Method Summary
abstract  CertPathValidatorResult sample code for java.security.cert.CertPathValidatorResult definition code for java.security.cert.CertPathValidatorResult engineValidate sample code for java.security.cert.CertPathValidatorSpi.engineValidate(java.security.cert.CertPath, java.security.cert.CertPathParameters) definition code for java.security.cert.CertPathValidatorSpi.engineValidate(java.security.cert.CertPath, java.security.cert.CertPathParameters) (CertPath sample code for java.security.cert.CertPath definition code for java.security.cert.CertPath  certPath, CertPathParameters sample code for java.security.cert.CertPathParameters definition code for java.security.cert.CertPathParameters  params)
          Validates the specified certification path using the specified algorithm parameter set.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

CertPathValidatorSpi sample code for java.security.cert.CertPathValidatorSpi() definition code for java.security.cert.CertPathValidatorSpi()

public CertPathValidatorSpi()
The default constructor.

Method Detail

engineValidate sample code for java.security.cert.CertPathValidatorSpi.engineValidate(java.security.cert.CertPath, java.security.cert.CertPathParameters) definition code for java.security.cert.CertPathValidatorSpi.engineValidate(java.security.cert.CertPath, java.security.cert.CertPathParameters)

public abstract CertPathValidatorResult sample code for java.security.cert.CertPathValidatorResult definition code for java.security.cert.CertPathValidatorResult  engineValidate(CertPath sample code for java.security.cert.CertPath definition code for java.security.cert.CertPath  certPath,
                                                       CertPathParameters sample code for java.security.cert.CertPathParameters definition code for java.security.cert.CertPathParameters  params)
                                                throws CertPathValidatorException sample code for java.security.cert.CertPathValidatorException definition code for java.security.cert.CertPathValidatorException ,
                                                       InvalidAlgorithmParameterException sample code for java.security.InvalidAlgorithmParameterException definition code for java.security.InvalidAlgorithmParameterException 
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 - the CertPath to be validated
params - the algorithm parameters
Returns:
the result of the validation algorithm
Throws:
CertPathValidatorException sample code for java.security.cert.CertPathValidatorException definition code for java.security.cert.CertPathValidatorException - if the CertPath does not validate
InvalidAlgorithmParameterException sample code for java.security.InvalidAlgorithmParameterException definition code for java.security.InvalidAlgorithmParameterException - if the specified parameters or the type of the specified CertPath are inappropriate for this CertPathValidator