java.lang.Object | |||
↳ | java.security.cert.PKIXParameters | ||
↳ | org.bouncycastle.x509.ExtendedPKIXParameters | ||
↳ | org.bouncycastle.x509.ExtendedPKIXBuilderParameters |
This class contains extended parameters for PKIX certification path builders.
PKIXCertPathBuilderSpi
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.x509.ExtendedPKIXParameters
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of
PKIXBuilderParameters with the
specified Set of most-trusted CAs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Makes a copy of this
PKIXParameters object. | |||||||||||
Excluded certificates are not used for building a certification path.
| |||||||||||
Returns an instance of
ExtendedPKIXParameters which can be
safely casted to ExtendedPKIXBuilderParameters . | |||||||||||
Returns the value of the maximum number of intermediate non-self-issued
certificates in the certification path.
| |||||||||||
Sets the excluded certificates which are not used for building a
certification path.
| |||||||||||
Sets the maximum number of intermediate non-self-issued certificates in a
certification path.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Can alse handle
ExtendedPKIXBuilderParameters and
PKIXBuilderParameters . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.x509.ExtendedPKIXParameters
| |||||||||||
From class
java.security.cert.PKIXParameters
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.security.cert.CertPathParameters
|
Creates an instance of PKIXBuilderParameters
with the
specified Set
of most-trusted CAs. Each element of the set
is a TrustAnchor
.
Note that the Set
is copied to protect against subsequent
modifications.
trustAnchors | a Set of TrustAnchor s |
---|---|
targetConstraints | a Selector specifying the
constraints on the target certificate or attribute
certificate. |
InvalidAlgorithmParameterException | if trustAnchors
is empty. |
---|---|
NullPointerException | if trustAnchors is
null |
ClassCastException | if any of the elements of
trustAnchors is not of type
java.security.cert.TrustAnchor
|
Makes a copy of this PKIXParameters
object. Changes to the
copy will not affect the original and vice versa.
PKIXParameters
object
Excluded certificates are not used for building a certification path.
The returned set is immutable.
Returns an instance of ExtendedPKIXParameters
which can be
safely casted to ExtendedPKIXBuilderParameters
.
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. |
---|
ExtendedPKIXBuilderParameters
instance.
Returns the value of the maximum number of intermediate non-self-issued certificates in the certification path.
Sets the excluded certificates which are not used for building a
certification path. If the Set
is null
an
empty set is assumed.
The given set is cloned to protect it against subsequent modifications.
excludedCerts | The excluded certificates to set. |
---|
Sets the maximum number of intermediate non-self-issued certificates in a
certification path. The PKIX CertPathBuilder
must 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.
maxPathLength | the maximum number of non-self-issued intermediate certificates in the certification path |
---|
InvalidParameterException | if maxPathLength is set
to a value less than -1 |
---|
Can alse handle ExtendedPKIXBuilderParameters
and
PKIXBuilderParameters
.
params | Parameters to set. |
---|