Class DosetaKeyRepository
java.lang.Object
org.jboss.resteasy.security.doseta.DosetaKeyRepository
- All Implemented Interfaces:
KeyRepository
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPrivate(String alias, PrivateKey key) protected voidprotected PublicKeyfindFromDns(String alias) findPrivateKey(DKIMSignature header) findPublicKey(DKIMSignature header) getAlias(DKIMSignature header) longWhat should be the default domain to use when creating signature headerWhat should be the default selector to use when creating signature headerprotected PrivateKeygetPrivateCache(String alias) protected PublicKeygetPublicCache(String alias) booleanisUseDns()booleanvoidsetCacheTimeout(long cacheTimeout) voidsetDefaultPrivateDomain(String defaultPrivateDomain) voidvoidsetKeyStore(KeyStoreKeyRepository keyStore) voidsetKeyStoreFile(String keyStoreFile) voidsetKeyStorePassword(String keyStorePassword) voidsetKeyStorePath(String keyStorePath) voidsetUseDns(boolean useDns) voidsetUserPrincipalAsPrivateSelector(boolean userPrincipalAsPrivateSelector) voidstart()
-
Field Details
-
privateCache
-
publicCache
-
keyStore
-
defaultPrivateDomain
-
useDns
protected boolean useDns -
userPrincipalAsPrivateSelector
protected boolean userPrincipalAsPrivateSelector -
dnsUri
-
cacheTimeout
protected long cacheTimeout -
keyStorePath
-
keyStoreFile
-
keyStorePassword
-
-
Constructor Details
-
DosetaKeyRepository
public DosetaKeyRepository()
-
-
Method Details
-
start
public void start() -
getDefaultPrivateSelector
Description copied from interface:KeyRepositoryWhat should be the default selector to use when creating signature header- Specified by:
getDefaultPrivateSelectorin interfaceKeyRepository- Returns:
- null if none
-
getKeyStorePath
-
setKeyStorePath
-
getKeyStoreFile
-
setKeyStoreFile
-
getKeyStorePassword
-
setKeyStorePassword
-
getKeyStore
-
setKeyStore
-
getDefaultPrivateDomain
Description copied from interface:KeyRepositoryWhat should be the default domain to use when creating signature header- Specified by:
getDefaultPrivateDomainin interfaceKeyRepository- Returns:
- null if none
-
setDefaultPrivateDomain
-
isUseDns
public boolean isUseDns() -
setUseDns
public void setUseDns(boolean useDns) -
isUserPrincipalAsPrivateSelector
public boolean isUserPrincipalAsPrivateSelector() -
setUserPrincipalAsPrivateSelector
public void setUserPrincipalAsPrivateSelector(boolean userPrincipalAsPrivateSelector) -
getDnsUri
-
setDnsUri
-
getCacheTimeout
public long getCacheTimeout() -
setCacheTimeout
public void setCacheTimeout(long cacheTimeout) -
addPrivate
-
addPublic
-
getPrivateCache
-
getPublicCache
-
getAlias
-
findPrivateKey
- Specified by:
findPrivateKeyin interfaceKeyRepository
-
findPublicKey
- Specified by:
findPublicKeyin interfaceKeyRepository
-
findFromDns
-