Top Description Fields Constructors Methods
org.bouncycastle.cert.dane

public Class DANECertificateFetcher

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .Iterator, .List, org.bouncycastle.operator.DigestCalculator

A single shot fetcher for a certificate which will only request the specific DNS record if the DANEEntryFetcher used on construction supports it.

Field Summary

Modifier and TypeField and Description
private final DANEEntryFetcherFactory
private final DANEEntrySelectorFactory

Constructor Summary

AccessConstructor and Description
public
DANECertificateFetcher(DANEEntryFetcherFactory
the fetcher to use for resolving requests.
fetcherFactory
,
DigestCalculator
the digest calculator to use for calculating sub-domains.
digestCalculator
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public List<E>

Returns:

a list of X509CertificateHolder objects, or an empty list if none present.
fetch
(String
the email address of interest.
emailAddress
)

Fetch the certificates associated with the passed in email address if any exists.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fetcherFactoryback to summary
private final DANEEntryFetcherFactory fetcherFactory
selectorFactoryback to summary
private final DANEEntrySelectorFactory selectorFactory

Constructor Detail

DANECertificateFetcherback to summary
public DANECertificateFetcher(DANEEntryFetcherFactory fetcherFactory, DigestCalculator digestCalculator)

Base constructor.

Parameters
fetcherFactory:DANEEntryFetcherFactory

the fetcher to use for resolving requests.

digestCalculator:DigestCalculator

the digest calculator to use for calculating sub-domains.

Method Detail

fetchback to summary
public List<E> fetch(String emailAddress) throws DANEException

Fetch the certificates associated with the passed in email address if any exists.

Parameters
emailAddress:String

the email address of interest.

Returns:List<E>

a list of X509CertificateHolder objects, or an empty list if none present.

Exceptions
DANEException:
in case of an underlying DNS or record parsing problem.