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

public Class DANEEntrySelectorFactory

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStream, org.bouncycastle.operator.DigestCalculator, org.bouncycastle.util.Strings, org.bouncycastle.util.encoders.Hex

Factory for creating selector objects to use with the DANECertificateStore.

Field Summary

Modifier and TypeField and Description
private final DigestCalculator

Constructor Summary

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

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public DANEEntrySelector
createSelector(String
the emails address of interest.
emailAddress
)

Create a selector for the passed in email address.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestCalculatorback to summary
private final DigestCalculator digestCalculator

Constructor Detail

DANEEntrySelectorFactoryback to summary
public DANEEntrySelectorFactory(DigestCalculator digestCalculator)

Base constructor.

At the moment you would call this as:

    new DANEEntrySelectorFactory(new TruncatingDigestCalculator(new SHA256DigestCalculator()));
or some equivalent.
Parameters
digestCalculator:DigestCalculator

a calculator for the message digest to filter email addresses currently truncated SHA-256 (originally SHA-224).

Method Detail

createSelectorback to summary
public DANEEntrySelector createSelector(String emailAddress) throws DANEException

Create a selector for the passed in email address.

Parameters
emailAddress:String

the emails address of interest.

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