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