public final class DomainKeyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getCacheTtl()
Returns the configured TTL (time to live) for retrieved
DomainKey s. |
static DomainKey |
getDomainKey(String signingDomain,
String selector)
Retrieves the
DomainKey for the given signing domain and selector. |
static Map<Character,String> |
getTags(String signingDomain,
String selector)
Retrieves the tags of a domain key for the given signing domain and selector.
|
static String |
getValue(String signingDomain,
String selector)
Retrieves the raw domain key for the given signing domain and selector.
|
static void |
setCacheTtl(long cacheTtl)
Sets the TTL (time to live) for retrieved
DomainKeys. |
public static long getCacheTtl()
DomainKey s.DomainKeys.public static void setCacheTtl(long cacheTtl)
DomainKeys.cacheTtl - The TTL for retrieved DomainKeys.public static DomainKey getDomainKey(String signingDomain, String selector) throws DkimException
DomainKey for the given signing domain and selector.signingDomain - The signing domain.selector - The selector.DomainKey.DkimException - If the domain key couldn't be retrieved or if either the version,
key type or service type given in the tags of the retrieved
domain key is incompatible to this library ('DKIM1', 'RSA' and
'email' respectively).public static Map<Character,String> getTags(String signingDomain, String selector) throws DkimException
signingDomain - The signing domain.selector - The selector.DkimException - If the domain key couldn't be retrieved.public static String getValue(String signingDomain, String selector) throws DkimException
signingDomain - The signing domain.selector - The selector.DkimException - If the domain key couldn't be retrieved.Copyright © 2015–2018 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.