Name
PKIXBuilderParameters
Synopsis
Instances of this class are used to
specify parameters to the build(
)
method of a
CertPathBuilder object. These parameters must
include the two mandatory ones passed to the constructors. The first
is a source of trust anchors, which may be supplied as a
Set of TrustAnchor objects or
as a java.security.KeyStore object. The second
required parameter is a CertSelector object
(typically an X509CertSelector) that specifies the
selection criteria for the certificate that is to have the
certification path built. In addition to these parameters that are
passed to the constructor, this class also inherits a number of
methods for setting other parameters, and defines
setMaxPathLength(
)
for specifying the maximum length of the
certificate chain that is built.
Figure 14-66. java.security.cert.PKIXBuilderParameters
public class PKIXBuilderParameters extends PKIXParameters { // Public Constructors public PKIXBuilderParameters(java.security.KeyStore keystore, CertSelector targetConstraints) throws java.security.KeyStoreException, java.security.InvalidAlgorithmParameterException; public PKIXBuilderParameters(java.util.Set<TrustAnchor> trustAnchors, CertSelector targetConstraints) throws java.security.InvalidAlgorithmParameterException; // Public Instance Methods public int getMaxPathLength( ); public void setMaxPathLength(int maxPathLength); // Public Methods ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access