public class ConfiguredDosetaKeyRepository extends Object implements KeyRepository
For WAR files, it will look in context parameters and servlet/filter init params for doseta variables.
Private keys are stored in a java keystore. Public keys may be stored in either a java keystore or discovered via DNS.
Modifier and Type | Field and Description |
---|---|
protected DosetaKeyRepository |
keyRepository |
static String |
RESTEASY_DOSETA_CACHE_TIMEOUT
Public keys are cached.
|
static String |
RESTEASY_DOSETA_DEFAULT_PRIVATE_DOMAIN
Context parameter.
|
static String |
RESTEASY_DOSETA_DNS_URI
Context parameter.
|
static String |
RESTEASY_DOSETA_PRINCIPAL_FOR_PRIVATE
true|false.
|
static String |
RESTEASY_DOSETA_USE_DNS
Context parameter.
|
static String |
RESTEASY_KEY_STORE_CLASSPATH
Context parameter.
|
static String |
RESTEASY_KEY_STORE_FILE_NAME
Context parameter.
|
static String |
RESTEASY_KEY_STORE_PASSWORD
Context parameter.
|
Constructor and Description |
---|
ConfiguredDosetaKeyRepository(ResteasyConfiguration config) |
Modifier and Type | Method and Description |
---|---|
PrivateKey |
findPrivateKey(DKIMSignature header) |
PublicKey |
findPublicKey(DKIMSignature header) |
String |
getDefaultPrivateDomain()
What should be the default domain to use when creating signature header
|
String |
getDefaultPrivateSelector()
What should be the default selector to use when creating signature header
|
public static String RESTEASY_KEY_STORE_FILE_NAME
Hardcoded file path to your keystore
public static String RESTEASY_KEY_STORE_CLASSPATH
Find the java keystore by searching the classpath. This points to a file on the classpath
public static String RESTEASY_KEY_STORE_PASSWORD
Password of the java keystore.
public static String RESTEASY_DOSETA_USE_DNS
true|false. Whether or not to use DNS to discover public keys. By default looks in keystore
public static String RESTEASY_DOSETA_DNS_URI
If you need to retrieve from a specific DNS server specify the url
dns://hostname:port
public static String RESTEASY_DOSETA_DEFAULT_PRIVATE_DOMAIN
When signing, if no domain is specified, use this domain.
public static String RESTEASY_DOSETA_CACHE_TIMEOUT
public static String RESTEASY_DOSETA_PRINCIPAL_FOR_PRIVATE
protected DosetaKeyRepository keyRepository
public ConfiguredDosetaKeyRepository(@Context ResteasyConfiguration config)
public PrivateKey findPrivateKey(DKIMSignature header)
findPrivateKey
in interface KeyRepository
public PublicKey findPublicKey(DKIMSignature header)
findPublicKey
in interface KeyRepository
public String getDefaultPrivateSelector()
KeyRepository
getDefaultPrivateSelector
in interface KeyRepository
public String getDefaultPrivateDomain()
KeyRepository
getDefaultPrivateDomain
in interface KeyRepository
Copyright © 2019 JBoss by Red Hat. All rights reserved.