@Requires(property="micronaut.security.token.enabled", notEquals="false") @ConfigurationProperties(value="micronaut.security.token.basic-auth") public class BasicAuthTokenReaderConfigurationProperties extends Object implements BasicAuthTokenReaderConfiguration
BasicAuthTokenReaderConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
PREFIX |
Constructor and Description |
---|
BasicAuthTokenReaderConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName() |
String |
getPrefix() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
BasicAuthTokenReader . |
void |
setHeaderName(String headerName)
Http Header name.
|
void |
setPrefix(String prefix)
Http Header value prefix.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public BasicAuthTokenReaderConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
isEnabled
in interface BasicAuthTokenReaderConfiguration
public String getPrefix()
getPrefix
in interface BasicAuthTokenReaderConfiguration
public String getHeaderName()
getHeaderName
in interface BasicAuthTokenReaderConfiguration
public void setEnabled(boolean enabled)
BasicAuthTokenReader
. Default value true.enabled
- True if enabledpublic void setHeaderName(String headerName)
headerName
- The header name to use