@Requires(property="micronaut.security.token.jwt.bearer.enabled", notEquals="false") @ConfigurationProperties(value="micronaut.security.token.jwt.bearer") public class BearerTokenConfigurationProperties extends Object implements BearerTokenConfiguration
BearerTokenConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED |
static String |
PREFIX |
Constructor and Description |
---|
BearerTokenConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName() |
String |
getPrefix() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Set whether to enable bearer token authentication.
|
void |
setHeaderName(String headerName)
Sets the header name to use.
|
void |
setPrefix(String prefix)
Sets the prefix to use for the auth token.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface Toggleable
isEnabled
in interface BearerTokenConfiguration
public String getPrefix()
getPrefix
in interface BearerTokenConfiguration
public String getHeaderName()
getHeaderName
in interface BearerTokenConfiguration
public void setEnabled(boolean enabled)
enabled
- True if enabledpublic void setHeaderName(String headerName)
headerName
- The header name to use