Package org.bouncycastle.jcajce
Class PKIXExtendedBuilderParameters.Builder
java.lang.Object
org.bouncycastle.jcajce.PKIXExtendedBuilderParameters.Builder
- Enclosing class:
PKIXExtendedBuilderParameters
Builder for a PKIXExtendedBuilderParameters object.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(PKIXBuilderParameters baseParameters) Builder(PKIXExtendedParameters baseParameters) -
Method Summary
Modifier and TypeMethodDescriptionaddExcludedCerts(Set<X509Certificate> excludedCerts) Adds excluded certificates which are not used for building a certification path.build()setMaxPathLength(int maxPathLength) Sets the maximum number of intermediate non-self-issued certificates in a certification path.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
addExcludedCerts
Adds excluded certificates which are not used for building a certification path.The given set is cloned to protect it against subsequent modifications.
- Parameters:
excludedCerts- The excluded certificates to set.
-
setMaxPathLength
Sets the maximum number of intermediate non-self-issued certificates in a certification path. The PKIXCertPathBuildermust not build paths longer then this length.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.
- Parameters:
maxPathLength- the maximum number of non-self-issued intermediate certificates in the certification path- Throws:
InvalidParameterException- ifmaxPathLengthis set to a value less than -1- See Also:
-
build
-