public static class X509RevocationChecker.Builder extends Object
| Constructor and Description |
|---|
Builder(KeyStore trustStore)
Base constructor.
|
Builder(Set<TrustAnchor> trustAnchors)
Base constructor.
|
Builder(TrustAnchor trustAnchor)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
X509RevocationChecker.Builder |
addCrls(CertStore crls)
Add a collection of CRLs to the checker.
|
X509RevocationChecker.Builder |
addCrls(Store<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 |
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 |
usingProvider(Provider provider)
Configure to use the installed provider with name ProviderName.
|
X509RevocationChecker.Builder |
usingProvider(String providerName)
Configure to use the installed provider with name ProviderName.
|
public Builder(TrustAnchor trustAnchor)
trustAnchor - the trust anchor our chain should start with.public Builder(Set<TrustAnchor> trustAnchors)
trustAnchors - a set of potential trust anchorspublic Builder(KeyStore trustStore) throws KeyStoreException
trustStore - a keystore of potential trust anchorsKeyStoreExceptionpublic X509RevocationChecker.Builder addCrls(CertStore crls)
crls - CRLs to be examined.public X509RevocationChecker.Builder addCrls(Store<CRL> crls)
crls - CRLs to be examined.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 usingProvider(Provider provider)
provider - provider to use.public X509RevocationChecker.Builder usingProvider(String providerName)
providerName - name of the installed provider to use.public X509RevocationChecker build()
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.