@Requires(property="micronaut.security.token.propagation.header.enabled", notEquals="false") @ConfigurationProperties(value="micronaut.security.token.propagation.header") public class HttpHeaderTokenPropagatorConfigurationProperties extends java.lang.Object implements HttpHeaderTokenPropagatorConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
HttpHeaderTokenPropagatorConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHeaderName() |
java.lang.String |
getPrefix() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enable
HttpHeaderTokenPropagator . |
void |
setHeaderName(java.lang.String headerName)
Http Header to be used to propagate the token.
|
void |
setPrefix(java.lang.String headerPrefix)
Value prefix for Http Header.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public HttpHeaderTokenPropagatorConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
HttpHeaderTokenPropagator
. Default value (true).enabled
- enabled flagpublic void setPrefix(java.lang.String headerPrefix)
headerPrefix
- preffix before the header valuepublic java.lang.String getPrefix()
getPrefix
in interface HttpHeaderTokenPropagatorConfiguration
public void setHeaderName(java.lang.String headerName)
headerName
- HTTP header namepublic java.lang.String getHeaderName()
getHeaderName
in interface HttpHeaderTokenPropagatorConfiguration