|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.cert.dane.DANEEntrySelectorFactory
Factory for creating selector objects to use with the DANECertificateStore.
| Constructor Summary | |
DANEEntrySelectorFactory(DigestCalculator digestCalculator)
Base constructor. |
|
| Method Summary | |
DANEEntrySelector |
createSelector(java.lang.String emailAddress)
Create a selector for the passed in email address. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DANEEntrySelectorFactory(DigestCalculator digestCalculator)
At the moment you would call this as: new DANEEntrySelectorFactory(new TruncatingDigestCalculator(new SHA256DigestCalculator())); or some equivalent.
digestCalculator - a calculator for the message digest to filter email addresses currently truncated SHA-256 (originally SHA-224).| Method Detail |
public DANEEntrySelector createSelector(java.lang.String emailAddress)
throws DANEException
The owner name is formed as in RFC 8162 sec. 3: the local-part, with any enclosing double quotes and backslash quoting removed, is hashed with the digest calculator and the hex result becomes the left-most label, followed by "_smimecert" and the domain. No case mapping is applied to the local-part (RFC 8162 sec. 4) and comments or folding whitespace in it are not removed.
emailAddress - the emails address of interest.
DANEException - in case of issue generating a matching name.
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||