Package org.bouncycastle.cert.dane
Class DANEEntrySelectorFactory
- java.lang.Object
 - 
- org.bouncycastle.cert.dane.DANEEntrySelectorFactory
 
 
- 
public class DANEEntrySelectorFactory extends java.lang.ObjectFactory for creating selector objects to use with the DANECertificateStore. 
- 
- 
Constructor Summary
Constructors Constructor Description DANEEntrySelectorFactory(DigestCalculator digestCalculator)Base constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DANEEntrySelectorcreateSelector(java.lang.String emailAddress)Create a selector for the passed in email address. 
 - 
 
- 
- 
Constructor Detail
- 
DANEEntrySelectorFactory
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- a calculator for the message digest to filter email addresses currently truncated SHA-256 (originally SHA-224).
 
 - 
 
- 
Method Detail
- 
createSelector
public DANEEntrySelector createSelector(java.lang.String emailAddress) throws DANEException
Create a selector for the passed in email address.- Parameters:
 emailAddress- the emails address of interest.- Throws:
 DANEException- in case of issue generating a matching name.
 
 - 
 
 -