java.lang.Object | |||
↳ | java.security.cert.PKIXParameters | ||
↳ | java.security.cert.PKIXBuilderParameters | ||
↳ | sun.security.provider.certpath.SunCertPathBuilderParameters |
This class specifies the set of parameters used as input for the Sun
certification path build algorithm. It is identical to PKIXBuilderParameters
with the addition of a buildForward
parameter which allows
the caller to specify whether or not the path should be constructed in
the forward direction.
The default for the buildForward
parameter is
true, which means that the build algorithm should construct paths
from the target subject back to the trusted anchor.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of
SunCertPathBuilderParameters with the
specified parameter values. | |||||||||||
Creates an instance of
SunCertPathBuilderParameters that
uses the specified KeyStore to populate the set
of most-trusted CA certificates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the value of the buildForward flag.
| |||||||||||
Sets the value of the buildForward flag.
| |||||||||||
Returns a formatted string describing the parameters.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates an instance of SunCertPathBuilderParameters
with the
specified parameter values.
trustAnchors | a Set of TrustAnchor s |
---|---|
targetConstraints | a CertSelector specifying the
constraints on the target certificate |
InvalidAlgorithmParameterException | if the specified
Set is empty (trustAnchors.isEmpty() == true) |
---|---|
NullPointerException | if the specified Set is
null |
ClassCastException | if any of the elements in the Set
are not of type java.security.cert.TrustAnchor
|
Creates an instance of SunCertPathBuilderParameters
that
uses the specified KeyStore
to populate the set
of most-trusted CA certificates.
keystore | A keystore from which the set of most-trusted CA certificates will be populated. |
---|---|
targetConstraints | a CertSelector specifying the
constraints on the target certificate |
KeyStoreException | if the keystore has not been initialized. |
---|---|
InvalidAlgorithmParameterException | if the keystore does not contain at least one trusted certificate entry |
NullPointerException | if the keystore is null
|
Returns the value of the buildForward flag.
Sets the value of the buildForward flag. If true, paths are built from the target subject to the trusted anchor. If false, paths are built from the trusted anchor to the target subject. The default value if not specified is true.
buildForward | the value of the buildForward flag |
---|
Returns a formatted string describing the parameters.