Package org.bouncycastle.cert.dane
Class DANEEntryFactory
java.lang.Object
org.bouncycastle.cert.dane.DANEEntryFactory
Factory class for creating DANEEntry objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntry
(String emailAddress, int certUsage, X509CertificateHolder certificate) Return a DANEEntry for the passed in email address and certificate.createEntry
(String emailAddress, X509CertificateHolder certificate) Return a DANEEntry for the passed in email address and certificate.
-
Constructor Details
-
DANEEntryFactory
Base constructor.- Parameters:
digestCalculator
- a calculator for the message digest to filter email addresses currently SHA-224.
-
-
Method Details
-
createEntry
public DANEEntry createEntry(String emailAddress, X509CertificateHolder certificate) throws DANEException Return a DANEEntry for the passed in email address and certificate. This method sets the entry's certificate usage field to 3.- 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.
-
createEntry
public DANEEntry createEntry(String emailAddress, int certUsage, X509CertificateHolder certificate) throws DANEException Return a DANEEntry for the passed in email address and certificate.- Parameters:
emailAddress
- the emails address of interest.certUsage
- the certificate usage field value to use.certificate
- the certificate to be associated with the email address.- Throws:
DANEException
- in case of issue generating a matching name.
-