public class DosetaKeyRepository extends Object implements KeyRepository
| Modifier and Type | Class and Description |
|---|---|
protected class |
DosetaKeyRepository.CacheEntry<T> |
| Modifier and Type | Field and Description |
|---|---|
protected long |
cacheTimeout |
protected String |
defaultPrivateDomain |
protected String |
dnsUri |
protected KeyStoreKeyRepository |
keyStore |
protected String |
keyStoreFile |
protected String |
keyStorePassword |
protected String |
keyStorePath |
protected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PrivateKey>> |
privateCache |
protected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PublicKey>> |
publicCache |
protected boolean |
useDns |
protected boolean |
userPrincipalAsPrivateSelector |
| Constructor and Description |
|---|
DosetaKeyRepository() |
protected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PrivateKey>> privateCache
protected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PublicKey>> publicCache
protected KeyStoreKeyRepository keyStore
protected String defaultPrivateDomain
protected boolean useDns
protected boolean userPrincipalAsPrivateSelector
protected String dnsUri
protected long cacheTimeout
protected String keyStorePath
protected String keyStoreFile
protected String keyStorePassword
public void start()
public String getDefaultPrivateSelector()
KeyRepositorygetDefaultPrivateSelector in interface KeyRepositorypublic String getKeyStorePath()
public void setKeyStorePath(String keyStorePath)
public String getKeyStoreFile()
public void setKeyStoreFile(String keyStoreFile)
public String getKeyStorePassword()
public void setKeyStorePassword(String keyStorePassword)
public KeyStoreKeyRepository getKeyStore()
public void setKeyStore(KeyStoreKeyRepository keyStore)
public String getDefaultPrivateDomain()
KeyRepositorygetDefaultPrivateDomain in interface KeyRepositorypublic void setDefaultPrivateDomain(String defaultPrivateDomain)
public boolean isUseDns()
public void setUseDns(boolean useDns)
public boolean isUserPrincipalAsPrivateSelector()
public void setUserPrincipalAsPrivateSelector(boolean userPrincipalAsPrivateSelector)
public String getDnsUri()
public void setDnsUri(String dnsUri)
public long getCacheTimeout()
public void setCacheTimeout(long cacheTimeout)
protected void addPrivate(String alias, PrivateKey key)
protected PrivateKey getPrivateCache(String alias)
public String getAlias(DKIMSignature header)
public PrivateKey findPrivateKey(DKIMSignature header)
findPrivateKey in interface KeyRepositorypublic PublicKey findPublicKey(DKIMSignature header)
findPublicKey in interface KeyRepositoryCopyright © 2013. All Rights Reserved.