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
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classDosetaKeyRepository.CacheEntry<T>
 - 
Field SummaryFields Modifier and Type Field Description protected longcacheTimeoutprotected StringdefaultPrivateDomainprotected StringdnsUriprotected KeyStoreKeyRepositorykeyStoreprotected StringkeyStoreFileprotected StringkeyStorePasswordprotected StringkeyStorePathprotected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PrivateKey>>privateCacheprotected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PublicKey>>publicCacheprotected booleanuseDnsprotected booleanuserPrincipalAsPrivateSelector
 - 
Constructor SummaryConstructors Constructor Description DosetaKeyRepository()
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
privateCacheprotected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PrivateKey>> privateCache 
 - 
publicCacheprotected ConcurrentHashMap<String,DosetaKeyRepository.CacheEntry<PublicKey>> publicCache 
 - 
keyStoreprotected KeyStoreKeyRepository keyStore 
 - 
defaultPrivateDomainprotected String defaultPrivateDomain 
 - 
useDnsprotected boolean useDns 
 - 
userPrincipalAsPrivateSelectorprotected boolean userPrincipalAsPrivateSelector 
 - 
dnsUriprotected String dnsUri 
 - 
cacheTimeoutprotected long cacheTimeout 
 - 
keyStorePathprotected String keyStorePath 
 - 
keyStoreFileprotected String keyStoreFile 
 - 
keyStorePasswordprotected String keyStorePassword 
 
- 
 - 
Method Detail- 
startpublic void start() 
 - 
getDefaultPrivateSelectorpublic String getDefaultPrivateSelector() Description copied from interface:KeyRepositoryWhat should be the default selector to use when creating signature header- Specified by:
- getDefaultPrivateSelectorin interface- KeyRepository
- Returns:
- null if none
 
 - 
getKeyStorePathpublic String getKeyStorePath() 
 - 
setKeyStorePathpublic void setKeyStorePath(String keyStorePath) 
 - 
getKeyStoreFilepublic String getKeyStoreFile() 
 - 
setKeyStoreFilepublic void setKeyStoreFile(String keyStoreFile) 
 - 
getKeyStorePasswordpublic String getKeyStorePassword() 
 - 
setKeyStorePasswordpublic void setKeyStorePassword(String keyStorePassword) 
 - 
getKeyStorepublic KeyStoreKeyRepository getKeyStore() 
 - 
setKeyStorepublic void setKeyStore(KeyStoreKeyRepository keyStore) 
 - 
getDefaultPrivateDomainpublic String getDefaultPrivateDomain() Description copied from interface:KeyRepositoryWhat should be the default domain to use when creating signature header- Specified by:
- getDefaultPrivateDomainin interface- KeyRepository
- Returns:
- null if none
 
 - 
setDefaultPrivateDomainpublic void setDefaultPrivateDomain(String defaultPrivateDomain) 
 - 
isUseDnspublic boolean isUseDns() 
 - 
setUseDnspublic void setUseDns(boolean useDns) 
 - 
isUserPrincipalAsPrivateSelectorpublic boolean isUserPrincipalAsPrivateSelector() 
 - 
setUserPrincipalAsPrivateSelectorpublic void setUserPrincipalAsPrivateSelector(boolean userPrincipalAsPrivateSelector) 
 - 
getDnsUripublic String getDnsUri() 
 - 
setDnsUripublic void setDnsUri(String dnsUri) 
 - 
getCacheTimeoutpublic long getCacheTimeout() 
 - 
setCacheTimeoutpublic void setCacheTimeout(long cacheTimeout) 
 - 
addPrivateprotected void addPrivate(String alias, PrivateKey key) 
 - 
getPrivateCacheprotected PrivateKey getPrivateCache(String alias) 
 - 
getAliaspublic String getAlias(DKIMSignature header) 
 - 
findPrivateKeypublic PrivateKey findPrivateKey(DKIMSignature header) - Specified by:
- findPrivateKeyin interface- KeyRepository
 
 - 
findPublicKeypublic PublicKey findPublicKey(DKIMSignature header) - Specified by:
- findPublicKeyin interface- KeyRepository
 
 
- 
 
-