Class ExtendedPKIXParameters
- All Implemented Interfaces:
Cloneable,CertPathParameters
- Direct Known Subclasses:
ExtendedPKIXBuilderParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.This model uses the following validity model.static final intDeprecated.This is the default PKIX validity model. -
Constructor Summary
ConstructorsConstructorDescriptionExtendedPKIXParameters(Set trustAnchors) Deprecated.Creates an instance ofPKIXParameterswith the specifiedSetof most-trusted CAs. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddionalStore(Store store) Deprecated.voidaddAdditionalStore(Store store) Deprecated.use addStore().voidDeprecated.Adds a Bouncy CastleStoreto find CRLs, certificates, attribute certificates or cross certificates.clone()Deprecated.Deprecated.Returns an immutableListof additional Bouncy CastleStores used for finding CRLs, certificates, attribute certificates or cross certificates.Deprecated.Returns the attribute certificate checker.static ExtendedPKIXParametersgetInstance(PKIXParameters pkixParams) Deprecated.Returns an instance with the parameters of a givenPKIXParametersobject.Deprecated.Returns the neccessary attributes which must be contained in an attribute certificate.Deprecated.Returns the attribute certificates which are not allowed.Deprecated.Returns an immutableListof Bouncy CastleStores used for finding CRLs, certificates, attribute certificates or cross certificates.Deprecated.Returns the required constraints on the target certificate or attribute certificate.Deprecated.Returns the trusted attribute certificate issuers.intDeprecated.booleanDeprecated.Returns if additionalX509Stores for locations like LDAP found in certificates or CRLs should be used.booleanDeprecated.Defaults tofalse.voidsetAdditionalLocationsEnabled(boolean enabled) Deprecated.Sets if additionalX509Stores for locations like LDAP found in certificates or CRLs should be used.voidsetAttrCertCheckers(Set attrCertCheckers) Deprecated.Sets the attribute certificate checkers.voidsetCertStores(List stores) Deprecated.Sets the Java CertStore to this extended PKIX parameters.voidsetNecessaryACAttributes(Set necessaryACAttributes) Deprecated.Sets the neccessary which must be contained in an attribute certificate.protected voidsetParams(PKIXParameters params) Deprecated.Method to supportclone()under J2ME.voidsetProhibitedACAttributes(Set prohibitedACAttributes) Deprecated.Sets the attribute certificates which are not allowed.voidDeprecated.Sets the Bouncy Castle Stores for finding CRLs, certificates, attribute certificates or cross certificates.voidsetTargetCertConstraints(CertSelector selector) Deprecated.Sets the required constraints on the target certificate.voidsetTargetConstraints(Selector selector) Deprecated.Sets the required constraints on the target certificate or attribute certificate.voidsetTrustedACIssuers(Set trustedACIssuers) Deprecated.Sets the trusted attribute certificate issuers.voidsetUseDeltasEnabled(boolean useDeltas) Deprecated.Sets if delta CRLs should be used for checking the revocation status.voidsetValidityModel(int validityModel) Deprecated.Methods inherited from class java.security.cert.PKIXParameters
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
-
Field Details
-
PKIX_VALIDITY_MODEL
public static final int PKIX_VALIDITY_MODELDeprecated.This is the default PKIX validity model. Actually there are two variants of this: The PKIX model and the modified PKIX model. The PKIX model verifies that all involved certificates must have been valid at the current time. The modified PKIX model verifies that all involved certificates were valid at the signing time. Both are indirectly choosen with thePKIXParameters.setDate(java.util.Date)method, so this methods sets the Date when all certificates must have been valid.- See Also:
-
CHAIN_VALIDITY_MODEL
public static final int CHAIN_VALIDITY_MODELDeprecated.This model uses the following validity model. Each certificate must have been valid at the moment where is was used. That means the end certificate must have been valid at the time the signature was done. The CA certificate which signed the end certificate must have been valid, when the end certificate was signed. The CA (or Root CA) certificate must have been valid, when the CA certificate was signed and so on. So thePKIXParameters.setDate(java.util.Date)method sets the time, when the end certificate must have been valid.It is used e.g. in the German signature law.
- See Also:
-
-
Constructor Details
-
ExtendedPKIXParameters
Deprecated.Creates an instance ofPKIXParameterswith the specifiedSetof most-trusted CAs. Each element of the set is aTrustAnchor.Note that the
Setis copied to protect against subsequent modifications.- Parameters:
trustAnchors- aSetofTrustAnchors- Throws:
InvalidAlgorithmParameterException- if the specifiedSetis empty.NullPointerException- if the specifiedSetisnullClassCastException- if any of the elements in theSetis not of typejava.security.cert.TrustAnchor
-
-
Method Details
-
getInstance
Deprecated.Returns an instance with the parameters of a givenPKIXParametersobject.- Parameters:
pkixParams- The givenPKIXParameters- Returns:
- an extended PKIX params object
-
setParams
Deprecated.Method to supportclone()under J2ME.super.clone()does not exist and fields are not copied.- Parameters:
params- Parameters to set. If this areExtendedPKIXParametersthey are copied to.
-
isUseDeltasEnabled
public boolean isUseDeltasEnabled()Deprecated.Defaults tofalse.- Returns:
- Returns if delta CRLs should be used.
-
setUseDeltasEnabled
public void setUseDeltasEnabled(boolean useDeltas) Deprecated.Sets if delta CRLs should be used for checking the revocation status.- Parameters:
useDeltas-trueif delta CRLs should be used.
-
getValidityModel
public int getValidityModel()Deprecated.- Returns:
- Returns the validity model.
- See Also:
-
setCertStores
Deprecated.Sets the Java CertStore to this extended PKIX parameters.- Overrides:
setCertStoresin classPKIXParameters- Throws:
ClassCastException- if an element ofstoresis not aCertStore.
-
setStores
Deprecated.Sets the Bouncy Castle Stores for finding CRLs, certificates, attribute certificates or cross certificates.The
Listis cloned.- Parameters:
stores- A list of stores to use.- Throws:
ClassCastException- if an element ofstoresis not aStore.- See Also:
-
addStore
Deprecated.Adds a Bouncy CastleStoreto find CRLs, certificates, attribute certificates or cross certificates.This method should be used to add local stores, like collection based X.509 stores, if available. Local stores should be considered first, before trying to use additional (remote) locations, because they do not need possible additional network traffic.
If
storeisnullit is ignored.- Parameters:
store- The store to add.- See Also:
-
addAdditionalStore
Deprecated.use addStore().Adds an additional Bouncy CastleStoreto find CRLs, certificates, attribute certificates or cross certificates.You should not use this method. This method is used for adding additional X.509 stores, which are used to add (remote) locations, e.g. LDAP, found during X.509 object processing, e.g. in certificates or CRLs. This method is used in PKIX certification path processing.
If
storeisnullit is ignored.- Parameters:
store- The store to add.- See Also:
-
addAddionalStore
Deprecated. -
getAdditionalStores
Deprecated.Returns an immutableListof additional Bouncy CastleStores used for finding CRLs, certificates, attribute certificates or cross certificates.- Returns:
- an immutable
Listof additional Bouncy CastleStores. Nevernull. - See Also:
-
getStores
Deprecated.Returns an immutableListof Bouncy CastleStores used for finding CRLs, certificates, attribute certificates or cross certificates.- Returns:
- an immutable
Listof Bouncy CastleStores. Nevernull. - See Also:
-
setValidityModel
public void setValidityModel(int validityModel) Deprecated.- Parameters:
validityModel- The validity model to set.- See Also:
-
clone
Deprecated.- Specified by:
clonein interfaceCertPathParameters- Overrides:
clonein classPKIXParameters
-
isAdditionalLocationsEnabled
public boolean isAdditionalLocationsEnabled()Deprecated.Returns if additionalX509Stores for locations like LDAP found in certificates or CRLs should be used.- Returns:
- Returns
trueif additional stores are used.
-
setAdditionalLocationsEnabled
public void setAdditionalLocationsEnabled(boolean enabled) Deprecated.Sets if additionalX509Stores for locations like LDAP found in certificates or CRLs should be used.- Parameters:
enabled-trueif additional stores are used.
-
getTargetConstraints
Deprecated.Returns the required constraints on the target certificate or attribute certificate. The constraints are returned as an instance ofSelector. Ifnull, no constraints are defined.The target certificate in a PKIX path may be a certificate or an attribute certificate.
Note that the
Selectorreturned is cloned to protect against subsequent modifications.- Returns:
- a
Selectorspecifying the constraints on the target certificate or attribute certificate (ornull) - See Also:
-
setTargetConstraints
Deprecated.Sets the required constraints on the target certificate or attribute certificate. The constraints are specified as an instance ofSelector. Ifnull, no constraints are defined.The target certificate in a PKIX path may be a certificate or an attribute certificate.
Note that the
Selectorspecified is cloned to protect against subsequent modifications.- Parameters:
selector- aSelectorspecifying the constraints on the target certificate or attribute certificate (ornull)- See Also:
-
setTargetCertConstraints
Deprecated.Sets the required constraints on the target certificate. The constraints are specified as an instance ofX509CertSelector. Ifnull, no constraints are defined.This method wraps the given
X509CertSelectorinto aX509CertStoreSelector.Note that the
X509CertSelectorspecified is cloned to protect against subsequent modifications.- Overrides:
setTargetCertConstraintsin classPKIXParameters- Parameters:
selector- aX509CertSelectorspecifying the constraints on the target certificate (ornull)- See Also:
-
getTrustedACIssuers
Deprecated.Returns the trusted attribute certificate issuers. If attribute certificates is verified the trusted AC issuers must be set.The returned
Setconsists ofTrustAnchors.The returned
Setis immutable. Nevernull- Returns:
- Returns an immutable set of the trusted AC issuers.
-
setTrustedACIssuers
Deprecated.Sets the trusted attribute certificate issuers. If attribute certificates is verified the trusted AC issuers must be set.The
trustedACIssuersmust be aSetofTrustAnchorThe given set is cloned.
- Parameters:
trustedACIssuers- The trusted AC issuers to set. Is nevernull.- Throws:
ClassCastException- if an element ofstoresis not aTrustAnchor.
-
getNecessaryACAttributes
Deprecated.Returns the neccessary attributes which must be contained in an attribute certificate.The returned
Setis immutable and containsStrings with the OIDs.- Returns:
- Returns the necessary AC attributes.
-
setNecessaryACAttributes
Deprecated.Sets the neccessary which must be contained in an attribute certificate.The
Setmust containStrings with the OIDs.The set is cloned.
- Parameters:
necessaryACAttributes- The necessary AC attributes to set.- Throws:
ClassCastException- if an element ofnecessaryACAttributesis not aString.
-
getProhibitedACAttributes
Deprecated.Returns the attribute certificates which are not allowed.The returned
Setis immutable and containsStrings with the OIDs.- Returns:
- Returns the prohibited AC attributes. Is never
null.
-
setProhibitedACAttributes
Deprecated.Sets the attribute certificates which are not allowed.The
Setmust containStrings with the OIDs.The set is cloned.
- Parameters:
prohibitedACAttributes- The prohibited AC attributes to set.- Throws:
ClassCastException- if an element ofprohibitedACAttributesis not aString.
-
getAttrCertCheckers
Deprecated.Returns the attribute certificate checker. The returned set containsPKIXAttrCertCheckers and is immutable.- Returns:
- Returns the attribute certificate checker. Is never
null.
-
setAttrCertCheckers
Deprecated.Sets the attribute certificate checkers.All elements in the
Setmust aPKIXAttrCertChecker.The given set is cloned.
- Parameters:
attrCertCheckers- The attribute certificate checkers to set. Is nevernull.- Throws:
ClassCastException- if an element ofattrCertCheckersis not aPKIXAttrCertChecker.
-