java.lang.Object | |
↳ | java.security.cert.CertPathValidator |
This class provides the functionality for validating certification paths (certificate chains) establishing a trust chain from a certificate to a trust anchor.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
CertPathValidator instance. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the certification path algorithm name.
| |||||||||||
Returns the default
CertPathValidator type from the Security
Properties. | |||||||||||
Returns a new certification path validator for the specified algorithm
from the specified provider.
| |||||||||||
Returns a new certification path validator for the specified algorithm
from the specified provider.
| |||||||||||
Returns a new certification path validator for the specified algorithm.
| |||||||||||
Returns the security provider.
| |||||||||||
Validates the
CertPath with the algorithm of this CertPathValidator using the specified algorithm parameters. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new CertPathValidator
instance.
validatorSpi | the implementation delegate. |
---|---|
provider | the security provider. |
algorithm | the name of the algorithm. |
Returns the certification path algorithm name.
Returns the default CertPathValidator
type from the Security
Properties.
CertPathValidator
type from the Security
Properties, or the string "PKIX"
if it cannot be
determined.
Returns a new certification path validator for the specified algorithm from the specified provider.
algorithm | the algorithm name. |
---|---|
provider | the security provider name. |
NoSuchAlgorithmException | if the specified security provider cannot provide the requested algorithm. |
---|---|
NoSuchProviderException | if no provider with the specified name can be found. |
NullPointerException | if algorithm is null . |
IllegalArgumentException | if provider == null || provider.isEmpty()
|
Returns a new certification path validator for the specified algorithm
from the specified provider. The provider
supplied does not
have to be registered.
algorithm | the algorithm name. |
---|---|
provider | the security provider name. |
NoSuchAlgorithmException | if the specified provider cannot provide the requested algorithm. |
---|---|
IllegalArgumentException | if provider == null |
NullPointerException | if algorithm is null .
|
Returns a new certification path validator for the specified algorithm.
algorithm | the algorithm name. |
---|
NoSuchAlgorithmException | if no installed provider provides the specified algorithm. |
---|---|
NullPointerException | if algorithm is null .
|
Returns the security provider.
Validates the CertPath
with the algorithm of this CertPathValidator
using the specified algorithm parameters.
certPath | the certification path to be validated. |
---|---|
params | the certification path validator algorithm parameters. |
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. |