Package org.bouncycastle.jcajce
Class PKIXExtendedParameters.Builder
java.lang.Object
org.bouncycastle.jcajce.PKIXExtendedParameters.Builder
- Enclosing class:
PKIXExtendedParameters
Builder for a PKIXExtendedParameters object.
-
Constructor Summary
ConstructorDescriptionBuilder
(PKIXParameters baseParameters) Builder
(PKIXExtendedParameters baseParameters) -
Method Summary
Modifier and TypeMethodDescriptionaddCertificateStore
(PKIXCertStore store) addCRLStore
(PKIXCRLStore store) addNamedCertificateStore
(GeneralName issuerAltName, PKIXCertStore store) addNamedCRLStore
(GeneralName issuerAltName, PKIXCRLStore store) build()
void
setRevocationEnabled
(boolean revocationEnabled) Flag whether or not revocation checking is to be enabled.setTargetConstraints
(PKIXCertStoreSelector selector) setTrustAnchor
(TrustAnchor trustAnchor) Set the trustAnchor to be used with these parameters.setTrustAnchors
(Set<TrustAnchor> trustAnchors) Set the set of trustAnchors to be used with these parameters.setUseDeltasEnabled
(boolean useDeltas) Sets if delta CRLs should be used for checking the revocation status.setValidityModel
(int validityModel)
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
addCertificateStore
-
addNamedCertificateStore
public PKIXExtendedParameters.Builder addNamedCertificateStore(GeneralName issuerAltName, PKIXCertStore store) -
addCRLStore
-
addNamedCRLStore
public PKIXExtendedParameters.Builder addNamedCRLStore(GeneralName issuerAltName, PKIXCRLStore store) -
setTargetConstraints
-
setUseDeltasEnabled
Sets if delta CRLs should be used for checking the revocation status.- Parameters:
useDeltas
-true
if delta CRLs should be used.
-
setValidityModel
- Parameters:
validityModel
- The validity model to set.- See Also:
-
setTrustAnchor
Set the trustAnchor to be used with these parameters.- Parameters:
trustAnchor
- the trust anchor end-entity and CRLs must be based on.- Returns:
- the current builder.
-
setTrustAnchors
Set the set of trustAnchors to be used with these parameters.- Parameters:
trustAnchors
- a set of trustAnchors, one of which a particular end-entity and it's associated CRLs must be based on.- Returns:
- the current builder.
-
setRevocationEnabled
public void setRevocationEnabled(boolean revocationEnabled) Flag whether or not revocation checking is to be enabled.- Parameters:
revocationEnabled
- true if revocation checking to be enabled, false otherwise.
-
build
-