Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.security.cert
Class PKIXBuilderParameters  view PKIXBuilderParameters download PKIXBuilderParameters.java

java.lang.Object
  extended byjava.security.cert.PKIXParameters
      extended byjava.security.cert.PKIXBuilderParameters
All Implemented Interfaces:
CertPathParameters, java.lang.Cloneable

public class PKIXBuilderParameters
extends PKIXParameters

Parameters for building certificate paths using the PKIX algorithm.


Field Summary
private  int maxPathLength
          The maximum path length.
 
Fields inherited from class java.security.cert.PKIXParameters
 
Constructor Summary
PKIXBuilderParameters(java.security.KeyStore keystore, CertSelector targetConstraints)
          Create a new PKIXBuilderParameters object, populating the trusted certificates set with all X.509 certificates found in the given key store.
PKIXBuilderParameters(java.util.Set trustAnchors, CertSelector targetConstraints)
          Create a new PKIXBuilderParameters object, populating the trusted certificates set with the elements of the given set, each of which must be a TrustAnchor.
 
Method Summary
 int getMaxPathLength()
          Returns the maximum length of certificate paths to build.
 void setMaxPathLength(int maxPathLength)
          Sets the maximum length of certificate paths to build.
 java.lang.String toString()
          Returns a printable representation of these parameters.
 
Methods inherited from class java.security.cert.PKIXParameters
addCertPathChecker, addCertStore, clone, getCertPathCheckers, getCertStores, getDate, getInitialPolicies, getPolicyQualifiersRejected, getSigProvider, getTargetCertConstraints, getTrustAnchors, isAnyPolicyInhibited, isExplicitPolicyRequired, isPolicyMappingInhibited, isRevocationEnabled, setAnyPolicyInhibited, setCertPathCheckers, setCertStores, setDate, setExplicitPolicyRequired, setInitialPolicies, setPolicyMappingInhibited, setPolicyQualifiersRejected, setRevocationEnabled, setSigProvider, setTargetCertConstraints, setTrustAnchors
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

maxPathLength

private int maxPathLength
The maximum path length.

Constructor Detail

PKIXBuilderParameters

public PKIXBuilderParameters(java.security.KeyStore keystore,
                             CertSelector targetConstraints)
                      throws java.security.KeyStoreException,
                             java.security.InvalidAlgorithmParameterException
Create a new PKIXBuilderParameters object, populating the trusted certificates set with all X.509 certificates found in the given key store. All certificates found in the key store are assumed to be trusted by this constructor.


PKIXBuilderParameters

public PKIXBuilderParameters(java.util.Set trustAnchors,
                             CertSelector targetConstraints)
                      throws java.security.InvalidAlgorithmParameterException
Create a new PKIXBuilderParameters object, populating the trusted certificates set with the elements of the given set, each of which must be a TrustAnchor.

Method Detail

getMaxPathLength

public int getMaxPathLength()
Returns the maximum length of certificate paths to build.

If this value is 0 it is taken to mean that the certificate path should contain only one certificate. A value of -1 means that the certificate path length is unconstrained. The default value is 5.


setMaxPathLength

public void setMaxPathLength(int maxPathLength)
Sets the maximum length of certificate paths to build.


toString

public java.lang.String toString()
Description copied from class: PKIXParameters
Returns a printable representation of these parameters.

Overrides:
toString in class PKIXParameters