DANECertificateFetcher (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.cert.dane

## Class DANECertificateFetcher

- java.lang.Object
- - org.bouncycastle.cert.dane.DANECertificateFetcher

-     public class DANECertificateFetcher
      extends java.lang.Object

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DANECertificateFetcher(DANEEntryFetcherFactory fetcherFactory, DigestCalculator digestCalculator)` Base constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List` | `fetch(java.lang.String emailAddress)` Fetch the certificates associated with the passed in email address if any exists.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DANECertificateFetcher

          public DANECertificateFetcher(DANEEntryFetcherFactory fetcherFactory,
                                DigestCalculator digestCalculator)

      Base constructor.
      Parameters:
        `fetcherFactory` - the fetcher to use for resolving requests.
        `digestCalculator` - the digest calculator to use for calculating sub-domains.

  - ### Method Detail

    - #### fetch

          public java.util.List fetch(java.lang.String emailAddress)
                               throws DANEException

      Fetch the certificates associated with the passed in email address if any exists.
      Parameters:
        `emailAddress` - the email address of interest.
      Returns:
        a list of X509CertificateHolder objects, or an empty list if none present.
      Throws:
        `DANEException` - in case of an underlying DNS or record parsing problem.