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

public Class DANEEntryFactory

extends Object
Class Inheritance
Imports
org.bouncycastle.cert.X509CertificateHolder, org.bouncycastle.operator.DigestCalculator

Factory class for creating DANEEntry objects.

Field Summary

Modifier and TypeField and Description
private final DANEEntrySelectorFactory

Constructor Summary

AccessConstructor and Description
public
DANEEntryFactory(DigestCalculator
a calculator for the message digest to filter email addresses currently SHA-224.
digestCalculator
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public DANEEntry
createEntry(String
the emails address of interest.
emailAddress
,
X509CertificateHolder
the certificate to be associated with the email address.
certificate
)

Return a DANEEntry for the passed in email address and certificate.

public DANEEntry
createEntry(String
the emails address of interest.
emailAddress
,
int
the certificate usage field value to use.
certUsage
,
X509CertificateHolder
the certificate to be associated with the email address.
certificate
)

Return a DANEEntry for the passed in email address and certificate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

selectorFactoryback to summary
private final DANEEntrySelectorFactory selectorFactory

Constructor Detail

DANEEntryFactoryback to summary
public DANEEntryFactory(DigestCalculator digestCalculator)

Base constructor.

Parameters
digestCalculator:DigestCalculator

a calculator for the message digest to filter email addresses currently SHA-224.

Method Detail

createEntryback to summary
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:String

the emails address of interest.

certificate:X509CertificateHolder

the certificate to be associated with the email address.

Exceptions
DANEException:
in case of issue generating a matching name.
createEntryback to summary
public DANEEntry createEntry(String emailAddress, int certUsage, X509CertificateHolder certificate) throws DANEException

Return a DANEEntry for the passed in email address and certificate.

Parameters
emailAddress:String

the emails address of interest.

certUsage:int

the certificate usage field value to use.

certificate:X509CertificateHolder

the certificate to be associated with the email address.

Exceptions
DANEException:
in case of issue generating a matching name.