public abstract class CertificateFetcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CertificateFetcher.ValidationContinuation |
| Modifier and Type | Field and Description |
|---|---|
protected CertificateStorage |
certificateStorage_ |
| Constructor and Description |
|---|
CertificateFetcher() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doFetch(CertificateRequest certificateRequest,
ValidationState state,
CertificateFetcher.ValidationContinuation continueValidation)
An implementation to fetch a certificate asynchronously.
|
void |
fetch(CertificateRequest certificateRequest,
ValidationState state,
CertificateFetcher.ValidationContinuation continueValidation)
Asynchronously fetch a certificate.
|
void |
setCertificateStorage(CertificateStorage certificateStorage)
Assign the certificate storage used to check for known certificates and to
cache unverified ones.
|
protected CertificateStorage certificateStorage_
public void setCertificateStorage(CertificateStorage certificateStorage)
certificateStorage - The certificate storage object which must be
valid for the lifetime of this CertificateFetcher.public final void fetch(CertificateRequest certificateRequest, ValidationState state, CertificateFetcher.ValidationContinuation continueValidation) throws CertificateV2.Error, ValidatorConfigError
certificateRequest - The the request with the Interest for fetching
the certificate.state - The validation state.continueValidation - After fetching, this calls
continueValidation.continueValidation(certificate, state) where certificate
is the fetched certificate and state is the ValidationState.CertificateV2.ErrorValidatorConfigErrorprotected abstract void doFetch(CertificateRequest certificateRequest, ValidationState state, CertificateFetcher.ValidationContinuation continueValidation) throws CertificateV2.Error
certificateRequest - The the request with the Interest for fetching
the certificate.state - The validation state.continueValidation - After fetching, this calls
continueValidation.continueValidation(certificate, state) where certificate
is the fetched certificate and state is the ValidationState.CertificateV2.ErrorCopyright © 2019. All rights reserved.