|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.bouncycastle.jce.cert.PKIXParameters
|
+--org.bouncycastle.x509.ExtendedPKIXParameters
|
+--org.bouncycastle.x509.ExtendedPKIXBuilderParameters
This class contains extended parameters for PKIX certification path builders.
PKIXBuilderParameters,
PKIXCertPathBuilderSpi| Fields inherited from class org.bouncycastle.x509.ExtendedPKIXParameters |
CHAIN_VALIDITY_MODEL, PKIX_VALIDITY_MODEL |
| Constructor Summary | |
ExtendedPKIXBuilderParameters(java.util.Set trustAnchors,
Selector targetConstraints)
Creates an instance of PKIXBuilderParameters with the specified Set of most-trusted CAs. |
|
| Method Summary | |
java.lang.Object |
clone()
Makes a copy of this PKIXParameters object. |
java.util.Set |
getExcludedCerts()
Excluded certificates are not used for building a certification path. |
static ExtendedPKIXParameters |
getInstance(PKIXParameters pkixParams)
Returns an instance of ExtendedPKIXParameters which can be safely casted to ExtendedPKIXBuilderParameters. |
int |
getMaxPathLength()
Returns the value of the maximum number of intermediate non-self-issued certificates in the certification path. |
void |
setExcludedCerts(java.util.Set excludedCerts)
Sets the excluded certificates which are not used for building a certification path. |
void |
setMaxPathLength(int maxPathLength)
Sets the maximum number of intermediate non-self-issued certificates in a certification path. |
protected void |
setParams(PKIXParameters params)
Can alse handle ExtendedPKIXBuilderParameters and PKIXBuilderParameters. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExtendedPKIXBuilderParameters(java.util.Set trustAnchors,
Selector targetConstraints)
throws java.security.InvalidAlgorithmParameterException
TrustAnchor.
Note that the Set is copied to protect against subsequent modifications.
trustAnchors - a Set of TrustAnchorstargetConstraints - a Selector specifying the
constraints on the target certificate or attribute
certificate.java.security.InvalidAlgorithmParameterException - if trustAnchors
is empty.NullPointerException - if trustAnchors is
nulljava.lang.ClassCastException - if any of the elements of
trustAnchors is not of type
java.security.cert.TrustAnchor| Method Detail |
public java.util.Set getExcludedCerts()
The returned set is immutable.
public void setExcludedCerts(java.util.Set excludedCerts)
The given set is cloned to protect it against subsequent modifications.
excludedCerts - The excluded certificates to set.public void setMaxPathLength(int maxPathLength)
A value of 0 implies that the path can only contain a single certificate. A value of -1 does not limit the length. The default length is 5.
The basic constraints extension of a CA certificate overrides this value if smaller.
maxPathLength - the maximum number of non-self-issued intermediate
certificates in the certification pathjava.security.InvalidParameterException - if maxPathLength is set
to a value less than -1PKIXCertPathBuilderSpi,
getMaxPathLength()public int getMaxPathLength()
setMaxPathLength(int)protected void setParams(PKIXParameters params)
setParams in class ExtendedPKIXParametersparams - Parameters to set.ExtendedPKIXParameters.setParams(org.bouncycastle.jce.cert.PKIXParameters)public java.lang.Object clone()
clone in class ExtendedPKIXParameterspublic static ExtendedPKIXParameters getInstance(PKIXParameters pkixParams)
This method can be used to get a copy from other PKIXBuilderParameters, PKIXParameters, and ExtendedPKIXParameters instances.
pkixParams - The PKIX parameters to create a copy of.
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||