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