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