@ConfigurationProperties(value="micronaut.security.token.propagation") public class TokenPropagationConfigurationProperties extends java.lang.Object implements TokenPropagationConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_PATH
The default path.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
TokenPropagationConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath() |
java.util.regex.Pattern |
getServiceIdPattern() |
java.lang.String |
getServiceIdRegex() |
java.util.regex.Pattern |
getUriPattern() |
java.lang.String |
getUriRegex() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
TokenPropagationHttpClientFilter . |
void |
setPath(java.lang.String path)
Configures
TokenPropagationHttpClientFilter path. |
void |
setServiceIdRegex(java.lang.String serviceIdRegex)
a regular expression to match the service id.
|
void |
setUriRegex(java.lang.String uriRegex)
a regular expression to match the uri.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_PATH
public TokenPropagationConfigurationProperties()
public java.lang.String getServiceIdRegex()
public void setServiceIdRegex(java.lang.String serviceIdRegex)
serviceIdRegex
- serviceId regular expressionpublic java.lang.String getUriRegex()
public void setUriRegex(java.lang.String uriRegex)
uriRegex
- uri regular expressionpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
TokenPropagationHttpClientFilter
. Default value falseenabled
- enabled flagpublic void setPath(java.lang.String path)
TokenPropagationHttpClientFilter
path. Default value "/**"path
- Path to be matched by Token Propagation Filter.public java.lang.String getPath()
getPath
in interface TokenPropagationConfiguration
public java.util.regex.Pattern getServiceIdPattern()
getServiceIdPattern
in interface io.micronaut.http.util.OutgointRequestProcessorMatcher
public java.util.regex.Pattern getUriPattern()
getUriPattern
in interface io.micronaut.http.util.OutgointRequestProcessorMatcher