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

org.bouncycastle.cert.dane

## Class DANEEntryFactory

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

-     public class DANEEntryFactory
      extends java.lang.Object

  Factory class for creating DANEEntry objects.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DANEEntryFactory(DigestCalculator digestCalculator)` Base constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DANEEntry` | `createEntry(java.lang.String emailAddress, X509CertificateHolder certificate)` Return a DANEEntry for the passed in email address and certificate.

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

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

- - ### Constructor Detail

    - #### DANEEntryFactory

          public DANEEntryFactory(DigestCalculator digestCalculator)

      Base constructor.
      Parameters:
        `digestCalculator` - a calculator for the message digest to filter email addresses currently SHA-224.

  - ### Method Detail

    - #### createEntry

          public DANEEntry createEntry(java.lang.String emailAddress,
                              X509CertificateHolder certificate)
                                throws DANEException

      Return a DANEEntry for the passed in email address and certificate.
      Parameters:
        `emailAddress` - the emails address of interest.
        `certificate` - the certificate to be associated with the email address.
      Throws:
        `DANEException` - in case of issue generating a matching name.