| Bouncy Castle Cryptography Library 1.39 | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
PKIXParametersorg.bouncycastle.x509.ExtendedPKIXParameterspublic class ExtendedPKIXParametersextends PKIXParametersField Summary | |
static int |
|
static int |
|
Constructor Summary | |
| |
Method Summary | |
void |
|
void | |
Object |
|
List |
|
Set |
|
static ExtendedPKIXParameters |
|
Set |
|
Set |
|
List |
|
Selector |
|
Set |
|
int | |
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public static final int CHAIN_VALIDITY_MODEL
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.
- Field Value:
- 1
public static final int PKIX_VALIDITY_MODEL
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.
- Field Value:
- 0
public ExtendedPKIXParameters(Set trustAnchors)
throws InvalidAlgorithmParameterExceptionCreates an instance ofPKIXParameterswith the specifiedSetof most-trusted CAs. Each element of the set is aTrustAnchor. Note that theSetis copied to protect against subsequent modifications.
- Parameters:
trustAnchors- aSetofTrustAnchors
public void addAddionalStore(Store store)
Adds a 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. Ifstoreisnullit is ignored.
- Parameters:
store- The store to add.
- See Also:
getStores()
public void addStore(Store store)
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. Ifstoreisnullit is ignored.
- Parameters:
store- The store to add.
- See Also:
getStores()
public Object clone()
public List getAdditionalStores()
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:
addAddionalStore(Store)
public Set getAttrCertCheckers()
Returns the attribute certificate checker. The returned set containsPKIXAttrCertCheckers and is immutable.
- Returns:
- Returns the attribute certificate checker. Is never
null.
public static ExtendedPKIXParameters getInstance(PKIXParameters pkixParams)
Returns an instance with the parameters of a givenPKIXParametersobject.
- Parameters:
pkixParams- The givenPKIXParameters
- Returns:
- an extended PKIX params object
public Set getNecessaryACAttributes()
Returns the neccessary attributes which must be contained in an attribute certificate. The returnedSetis immutable and containsStrings with the OIDs.
- Returns:
- Returns the necessary AC attributes.
public Set getProhibitedACAttributes()
Returns the attribute certificates which are not allowed. The returnedSetis immutable and containsStrings with the OIDs.
- Returns:
- Returns the prohibited AC attributes. Is never
null.
public List getStores()
Returns an immutableListof Bouncy CastleStores used for finding CRLs, certificates, attribute certificates or cross certificates.
- Returns:
- an immutable
Listof Bouncy CastleStores. Nevernull.
- See Also:
setStores(List)
public Selector getTargetConstraints()
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 theSelectorreturned is cloned to protect against subsequent modifications.
- Returns:
- a
Selectorspecifying the constraints on the target certificate or attribute certificate (ornull)
public Set getTrustedACIssuers()
Returns the trusted attribute certificate issuers. If attribute certificates is verified the trusted AC issuers must be set. The returnedSetconsists ofTrustAnchors. The returnedSetis immutable. Nevernull
- Returns:
- Returns an immutable set of the trusted AC issuers.
public int getValidityModel()
- Returns:
- Returns the validity model.
- See Also:
CHAIN_VALIDITY_MODEL,PKIX_VALIDITY_MODEL
public boolean isAdditionalLocationsEnabled()
Returns if additionalX509Stores for locations like LDAP found in certificates or CRLs should be used.
- Returns:
- Returns
trueif additional stores are used.
public boolean isUseDeltasEnabled()
Defaults tofalse.
- Returns:
- Returns if delta CRLs should be used.
public void setAdditionalLocationsEnabled(boolean enabled)
Sets if additionalX509Stores for locations like LDAP found in certificates or CRLs should be used.
- Parameters:
enabled-trueif additional stores are used.
public void setAttrCertCheckers(Set attrCertCheckers)
Sets the attribute certificate checkers. All elements in theSetmust aPKIXAttrCertChecker. The given set is cloned.
- Parameters:
attrCertCheckers- The attribute certificate checkers to set. Is nevernull.
public void setCertStores(List stores)
Sets the Java CertStore to this extended PKIX parameters.
public void setNecessaryACAttributes(Set necessaryACAttributes)
Sets the neccessary which must be contained in an attribute certificate. TheSetmust containStrings with the OIDs. The set is cloned.
- Parameters:
necessaryACAttributes- The necessary AC attributes to set.
protected void setParams(PKIXParameters params)
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.
public void setProhibitedACAttributes(Set prohibitedACAttributes)
Sets the attribute certificates which are not allowed. TheSetmust containStrings with the OIDs. The set is cloned.
- Parameters:
prohibitedACAttributes- The prohibited AC attributes to set.
public void setStores(List stores)
Sets the Bouncy Castle Stores for finding CRLs, certificates, attribute certificates or cross certificates. TheListis cloned.
- Parameters:
stores- A list of stores to use.
- See Also:
getStores()
public void setTargetCertConstraints(CertSelector selector)
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 givenX509CertSelectorinto aX509CertStoreSelector. Note that theX509CertSelectorspecified is cloned to protect against subsequent modifications.
- Parameters:
selector- aX509CertSelectorspecifying the constraints on the target certificate (ornull)
- See Also:
ExtendedPKIXParameters,X509CertStoreSelector
public void setTargetConstraints(Selector selector)
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 theSelectorspecified is cloned to protect against subsequent modifications.
- Parameters:
selector- aSelectorspecifying the constraints on the target certificate or attribute certificate (ornull)
public void setTrustedACIssuers(Set trustedACIssuers)
Sets the trusted attribute certificate issuers. If attribute certificates is verified the trusted AC issuers must be set. ThetrustedACIssuersmust be aSetofTrustAnchorThe given set is cloned.
- Parameters:
trustedACIssuers- The trusted AC issuers to set. Is nevernull.
public void setUseDeltasEnabled(boolean useDeltas)
Sets if delta CRLs should be used for checking the revocation status.
- Parameters:
useDeltas-trueif delta CRLs should be used.
public void setValidityModel(int validityModel)
- Parameters:
validityModel- The validity model to set.
- See Also:
CHAIN_VALIDITY_MODEL,PKIX_VALIDITY_MODEL