public class ExtendedPKIXBuilderParameters extends ExtendedPKIXParameters
PKIXBuilderParameters
,
PKIXCertPathBuilderSpi
CHAIN_VALIDITY_MODEL, PKIX_VALIDITY_MODEL
Constructor and Description |
---|
ExtendedPKIXBuilderParameters(java.util.Set trustAnchors,
Selector targetConstraints)
Deprecated.
Creates an instance of
PKIXBuilderParameters with the
specified Set of most-trusted CAs. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deprecated.
Makes a copy of this
PKIXParameters object. |
java.util.Set |
getExcludedCerts()
Deprecated.
Excluded certificates are not used for building a certification path.
|
static ExtendedPKIXParameters |
getInstance(java.security.cert.PKIXParameters pkixParams)
Deprecated.
Returns an instance of
ExtendedPKIXParameters which can be
safely casted to ExtendedPKIXBuilderParameters . |
int |
getMaxPathLength()
Deprecated.
Returns the value of the maximum number of intermediate non-self-issued
certificates in the certification path.
|
void |
setExcludedCerts(java.util.Set excludedCerts)
Deprecated.
Sets the excluded certificates which are not used for building a
certification path.
|
void |
setMaxPathLength(int maxPathLength)
Deprecated.
Sets the maximum number of intermediate non-self-issued certificates in a
certification path.
|
protected void |
setParams(java.security.cert.PKIXParameters params)
Deprecated.
Can alse handle
ExtendedPKIXBuilderParameters and
PKIXBuilderParameters . |
addAddionalStore, addAdditionalStore, addStore, getAdditionalStores, getAttrCertCheckers, getNecessaryACAttributes, getProhibitedACAttributes, getStores, getTargetConstraints, getTrustedACIssuers, getValidityModel, isAdditionalLocationsEnabled, isUseDeltasEnabled, setAdditionalLocationsEnabled, setAttrCertCheckers, setCertStores, setNecessaryACAttributes, setProhibitedACAttributes, setStores, setTargetCertConstraints, setTargetConstraints, setTrustedACIssuers, setUseDeltasEnabled, setValidityModel
addCertPathChecker, addCertStore, getCertPathCheckers, getCertStores, getDate, getInitialPolicies, getPolicyQualifiersRejected, getSigProvider, getTargetCertConstraints, getTrustAnchors, isAnyPolicyInhibited, isExplicitPolicyRequired, isPolicyMappingInhibited, isRevocationEnabled, setAnyPolicyInhibited, setCertPathCheckers, setDate, setExplicitPolicyRequired, setInitialPolicies, setPolicyMappingInhibited, setPolicyQualifiersRejected, setRevocationEnabled, setSigProvider, setTrustAnchors, toString
public ExtendedPKIXBuilderParameters(java.util.Set trustAnchors, Selector targetConstraints) throws java.security.InvalidAlgorithmParameterException
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
stargetConstraints
- a Selector
specifying the
constraints on the target certificate or attribute
certificate.java.security.InvalidAlgorithmParameterException
- if trustAnchors
is empty.java.lang.NullPointerException
- if trustAnchors
is
null
java.lang.ClassCastException
- if any of the elements of
trustAnchors
is not of type
java.security.cert.TrustAnchor
public java.util.Set getExcludedCerts()
The returned set is immutable.
public void setExcludedCerts(java.util.Set excludedCerts)
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.public void setMaxPathLength(int maxPathLength)
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 pathjava.security.InvalidParameterException
- if maxPathLength
is set
to a value less than -1PKIXCertPathBuilderSpi
,
getMaxPathLength()
public int getMaxPathLength()
setMaxPathLength(int)
protected void setParams(java.security.cert.PKIXParameters params)
ExtendedPKIXBuilderParameters
and
PKIXBuilderParameters
.setParams
in class ExtendedPKIXParameters
params
- Parameters to set.ExtendedPKIXParameters.setParams(java.security.cert.PKIXParameters)
public java.lang.Object clone()
PKIXParameters
object. Changes to the
copy will not affect the original and vice versa.clone
in interface java.security.cert.CertPathParameters
clone
in class ExtendedPKIXParameters
PKIXParameters
objectpublic static ExtendedPKIXParameters getInstance(java.security.cert.PKIXParameters pkixParams)
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.