public static class X509RevocationChecker.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(java.security.KeyStore trustStore)
Base constructor.
|
Builder(java.util.Set<java.security.cert.TrustAnchor> trustAnchors)
Base constructor.
|
Builder(java.security.cert.TrustAnchor trustAnchor)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
X509RevocationChecker.Builder |
addCrls(java.security.cert.CertStore crls)
Add a collection of CRLs to the checker.
|
X509RevocationChecker.Builder |
addCrls(org.bouncycastle.util.Store<java.security.cert.CRL> crls)
Add a collection of CRLs to the checker.
|
X509RevocationChecker |
build()
Build a revocation checker conforming to the current builder.
|
X509RevocationChecker.Builder |
setCheckEndEntityOnly(boolean isTrue) |
X509RevocationChecker.Builder |
setDate(java.util.Date validityDate)
Set the current date for checking if not today.
|
X509RevocationChecker.Builder |
setSoftFail(boolean isTrue,
long maxTime)
Configure soft failure if CRLs/OCSP not available.
|
X509RevocationChecker.Builder |
setSoftFailHardLimit(boolean isTrue,
long maxTime)
Configure soft failure with a hard limit if CRLs/OCSP not available.
|
X509RevocationChecker.Builder |
setValidityModel(int validityModel) |
X509RevocationChecker.Builder |
usingProvider(java.security.Provider provider)
Configure to use the installed provider with name ProviderName.
|
X509RevocationChecker.Builder |
usingProvider(java.lang.String providerName)
Configure to use the installed provider with name ProviderName.
|
public Builder(java.security.cert.TrustAnchor trustAnchor)
trustAnchor
- the trust anchor our chain should start with.public Builder(java.util.Set<java.security.cert.TrustAnchor> trustAnchors)
trustAnchors
- a set of potential trust anchorspublic Builder(java.security.KeyStore trustStore) throws java.security.KeyStoreException
trustStore
- a keystore of potential trust anchorsjava.security.KeyStoreException
public X509RevocationChecker.Builder addCrls(java.security.cert.CertStore crls)
crls
- CRLs to be examined.public X509RevocationChecker.Builder addCrls(org.bouncycastle.util.Store<java.security.cert.CRL> crls)
crls
- CRLs to be examined.public X509RevocationChecker.Builder setDate(java.util.Date validityDate)
validityDate
- date we are validating for.public X509RevocationChecker.Builder setCheckEndEntityOnly(boolean isTrue)
isTrue
- true if only end-entities should be checked, false otherwise.public X509RevocationChecker.Builder setSoftFail(boolean isTrue, long maxTime)
isTrue
- true soft failure should be enabled, false otherwise.maxTime
- the time that can pass between the first failure and the most recent.public X509RevocationChecker.Builder setSoftFailHardLimit(boolean isTrue, long maxTime)
isTrue
- true soft failure should be enabled, false otherwise.maxTime
- the time that can pass between the first failure and the most recent.public X509RevocationChecker.Builder setValidityModel(int validityModel)
validityModel
- The validity model to set.X509RevocationChecker.CHAIN_VALIDITY_MODEL
,
X509RevocationChecker.PKIX_VALIDITY_MODEL
public X509RevocationChecker.Builder usingProvider(java.security.Provider provider)
provider
- provider to use.public X509RevocationChecker.Builder usingProvider(java.lang.String providerName)
providerName
- name of the installed provider to use.public X509RevocationChecker build()