java.lang.Object | ||
↳ | java.security.cert.PKIXParameters | |
↳ | java.security.cert.PKIXBuilderParameters |
The parameter specification for a PKIX CertPathBuilder
algorithm used to build
certificate chains validated with the PKIX certification path validation.
The parameters must be created with trusted certificate authorities and constraints for the target certificates.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
PKIXBuilderParameters instance with the specified
set of TrustAnchor and certificate constraints.
| |||||||||||
Creates a new
PKIXBuilderParameters instance with the trusted
X509Certificate entries from the specified KeyStore .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the maximum length of a certification path.
| |||||||||||
Set the maximum length of a certification path.
| |||||||||||
Returns a string representation of this
PKIXBuilderParameters
instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.security.cert.PKIXParameters
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.security.cert.CertPathParameters
|
Creates a new PKIXBuilderParameters
instance with the specified
set of TrustAnchor
and certificate constraints.
trustAnchors | the set of TrustAnchors . |
---|---|
targetConstraints | the certificate constraints. |
InvalidAlgorithmParameterException | if trustAnchors is empty. |
---|---|
ClassCastException | if one of the items in trustAnchors is not an
instance of java.security.cert.TrustAnchor .
|
Creates a new PKIXBuilderParameters
instance with the trusted
X509Certificate
entries from the specified KeyStore
.
keyStore | the key store containing trusted certificates. |
---|---|
targetConstraints | the certificate constraints. |
KeyStoreException | if the keyStore is not initialized. |
---|---|
InvalidAlgorithmParameterException | if keyStore does not contained any trusted
certificate entry.
|
Returns the maximum length of a certification path.
This is the maximum number of non-self-signed certificates in a certification path.
-1
if it
is unlimited.
Set the maximum length of a certification path.
This is the maximum number of non-self-signed certificates in a certification path.
maxPathLength | the maximum length of a certification path. |
---|
InvalidParameterException | if maxPathLength is less than -1 .
|
---|
Returns a string representation of this PKIXBuilderParameters
instance.
PKIXBuilderParameters
instance.