Class DosetaKeyRepository
java.lang.Object
org.jboss.resteasy.security.doseta.DosetaKeyRepository
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPrivate
(String alias, PrivateKey key) protected void
protected PublicKey
findFromDns
(String alias) findPrivateKey
(DKIMSignature header) findPublicKey
(DKIMSignature header) getAlias
(DKIMSignature header) long
What should be the default domain to use when creating signature headerWhat should be the default selector to use when creating signature headerprotected PrivateKey
getPrivateCache
(String alias) protected PublicKey
getPublicCache
(String alias) boolean
isUseDns()
boolean
void
setCacheTimeout
(long cacheTimeout) void
setDefaultPrivateDomain
(String defaultPrivateDomain) void
void
setKeyStore
(KeyStoreKeyRepository keyStore) void
setKeyStoreFile
(String keyStoreFile) void
setKeyStorePassword
(String keyStorePassword) void
setKeyStorePath
(String keyStorePath) void
setUseDns
(boolean useDns) void
setUserPrincipalAsPrivateSelector
(boolean userPrincipalAsPrivateSelector) void
start()
-
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:KeyRepository
What should be the default selector to use when creating signature header- Specified by:
getDefaultPrivateSelector
in interfaceKeyRepository
- Returns:
- null if none
-
getKeyStorePath
-
setKeyStorePath
-
getKeyStoreFile
-
setKeyStoreFile
-
getKeyStorePassword
-
setKeyStorePassword
-
getKeyStore
-
setKeyStore
-
getDefaultPrivateDomain
Description copied from interface:KeyRepository
What should be the default domain to use when creating signature header- Specified by:
getDefaultPrivateDomain
in 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:
findPrivateKey
in interfaceKeyRepository
-
findPublicKey
- Specified by:
findPublicKey
in interfaceKeyRepository
-
findFromDns
-