Package org.bouncycastle.jcajce
Class PKIXExtendedParameters
java.lang.Object
org.bouncycastle.jcajce.PKIXExtendedParameters
- All Implemented Interfaces:
Cloneable
,CertPathParameters
This class extends the PKIXParameters with a validity model parameter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for a PKIXExtendedParameters object. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
This model uses the following validity model.static final int
This is the default PKIX validity model. -
Method Summary
Modifier and TypeMethodDescriptionclone()
getDate()
Deprecated.Use 'getValidityDate' instead (which can return null).boolean
Returns the required constraints on the target certificate.Returns the time at which to check the validity of the certification path.int
boolean
boolean
boolean
boolean
boolean
Defaults tofalse
.
-
Field Details
-
PKIX_VALIDITY_MODEL
public static final int PKIX_VALIDITY_MODELThis 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 chosen with thePKIXParameters.setDate(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_MODELThis model uses the following validity model. Each certificate must have been valid at the moment when it 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(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:
-
-
Method Details
-
getCertificateStores
-
getNamedCertificateStoreMap
-
getCRLStores
-
getNamedCRLStoreMap
-
getValidityDate
Returns the time at which to check the validity of the certification path. Ifnull
, the current time is used.- Returns:
- the
Date
, ornull
if not set
-
getDate
Deprecated.Use 'getValidityDate' instead (which can return null). -
isUseDeltasEnabled
public boolean isUseDeltasEnabled()Defaults tofalse
.- Returns:
- Returns if delta CRLs should be used.
-
getValidityModel
public int getValidityModel()- Returns:
- Returns the validity model.
- See Also:
-
clone
- Specified by:
clone
in interfaceCertPathParameters
- Overrides:
clone
in classObject
-
getTargetConstraints
Returns the required constraints on the target certificate. The constraints are returned as an instance ofSelector
. Ifnull
, no constraints are defined.- Returns:
- a
Selector
specifying the constraints on the target certificate or attribute certificate (ornull
) - See Also:
-
getTrustAnchors
-
getInitialPolicies
-
getSigProvider
-
isExplicitPolicyRequired
public boolean isExplicitPolicyRequired() -
isAnyPolicyInhibited
public boolean isAnyPolicyInhibited() -
isPolicyMappingInhibited
public boolean isPolicyMappingInhibited() -
getCertPathCheckers
-
getCertStores
-
isRevocationEnabled
public boolean isRevocationEnabled() -
getPolicyQualifiersRejected
public boolean getPolicyQualifiersRejected()
-