Package java.security.cert
Class CertPathValidatorSpi
java.lang.Object
java.security.cert.CertPathValidatorSpi
- Direct Known Subclasses:
PKIXCertPathValidatorSpi
public abstract class CertPathValidatorSpi extends Object
The Service Provider Interface (SPI) for the
CertPathValidator class to be implemented by security providers.-
Constructor Summary
Constructors Constructor Description CertPathValidatorSpi()Creates a newCertPathValidatorSpiinstance. -
Method Summary
Modifier and Type Method Description abstract CertPathValidatorResultengineValidate(CertPath certPath, CertPathParameters params)Validates theCertPathwith the algorithm of thisCertPathValidatorusing the specified algorithm parameters.
-
Constructor Details
-
CertPathValidatorSpi
public CertPathValidatorSpi()Creates a newCertPathValidatorSpiinstance.
-
-
Method Details
-
engineValidate
public abstract CertPathValidatorResult engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterExceptionValidates theCertPathwith the algorithm of thisCertPathValidatorusing the specified algorithm parameters.- Parameters:
certPath- the certification path to be validated.params- the certification path validator algorithm parameters.- Returns:
- the validation result.
- Throws:
CertPathValidatorException- if the validation fails, or the algorithm of the specified certification path cannot be validated using the algorithm of this instance.InvalidAlgorithmParameterException- if the specified algorithm parameters cannot be used with this algorithm.
-