org.jboss.resteasy.security.doseta
Class DosetaKeyRepository
java.lang.Object
org.jboss.resteasy.security.doseta.DosetaKeyRepository
- All Implemented Interfaces:
- KeyRepository
public class DosetaKeyRepository
- extends Object
- implements KeyRepository
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
privateCache
protected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PrivateKey>> privateCache
publicCache
protected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PublicKey>> publicCache
keyStore
protected KeyStoreKeyRepository keyStore
defaultPrivateDomain
protected String defaultPrivateDomain
useDns
protected boolean useDns
userPrincipalAsPrivateSelector
protected boolean userPrincipalAsPrivateSelector
dnsUri
protected String dnsUri
cacheTimeout
protected long cacheTimeout
keyStorePath
protected String keyStorePath
keyStoreFile
protected String keyStoreFile
keyStorePassword
protected String keyStorePassword
DosetaKeyRepository
public DosetaKeyRepository()
start
public void start()
getDefaultPrivateSelector
public String getDefaultPrivateSelector()
- Description copied from interface:
KeyRepository
- What should be the default selector to use when creating signature header
- Specified by:
getDefaultPrivateSelector
in interface KeyRepository
- Returns:
- null if none
getKeyStorePath
public String getKeyStorePath()
setKeyStorePath
public void setKeyStorePath(String keyStorePath)
getKeyStoreFile
public String getKeyStoreFile()
setKeyStoreFile
public void setKeyStoreFile(String keyStoreFile)
getKeyStorePassword
public String getKeyStorePassword()
setKeyStorePassword
public void setKeyStorePassword(String keyStorePassword)
getKeyStore
public KeyStoreKeyRepository getKeyStore()
setKeyStore
public void setKeyStore(KeyStoreKeyRepository keyStore)
getDefaultPrivateDomain
public String getDefaultPrivateDomain()
- Description copied from interface:
KeyRepository
- What should be the default domain to use when creating signature header
- Specified by:
getDefaultPrivateDomain
in interface KeyRepository
- Returns:
- null if none
setDefaultPrivateDomain
public void setDefaultPrivateDomain(String defaultPrivateDomain)
isUseDns
public boolean isUseDns()
setUseDns
public void setUseDns(boolean useDns)
isUserPrincipalAsPrivateSelector
public boolean isUserPrincipalAsPrivateSelector()
setUserPrincipalAsPrivateSelector
public void setUserPrincipalAsPrivateSelector(boolean userPrincipalAsPrivateSelector)
getDnsUri
public String getDnsUri()
setDnsUri
public void setDnsUri(String dnsUri)
getCacheTimeout
public long getCacheTimeout()
setCacheTimeout
public void setCacheTimeout(long cacheTimeout)
addPrivate
protected void addPrivate(String alias,
PrivateKey key)
addPublic
protected void addPublic(String alias,
PublicKey key)
getPrivateCache
protected PrivateKey getPrivateCache(String alias)
getPublicCache
protected PublicKey getPublicCache(String alias)
getAlias
public String getAlias(DKIMSignature header)
findPrivateKey
public PrivateKey findPrivateKey(DKIMSignature header)
- Specified by:
findPrivateKey
in interface KeyRepository
findPublicKey
public PublicKey findPublicKey(DKIMSignature header)
- Specified by:
findPublicKey
in interface KeyRepository
findFromDns
protected PublicKey findFromDns(String alias)
Copyright © 2013. All Rights Reserved.