@Requires(property="micronaut.security.token.jwt.bearer.enabled",
          notEquals="false")
 @ConfigurationProperties(value="micronaut.security.token.jwt.bearer")
public class BearerTokenConfigurationProperties
extends java.lang.Object
implements BearerTokenConfiguration
BearerTokenConfiguration.| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_ENABLED | 
| static java.lang.String | PREFIX | 
| Constructor and Description | 
|---|
| BearerTokenConfigurationProperties() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getHeaderName() | 
| java.lang.String | getPrefix() | 
| boolean | isEnabled() | 
| void | setEnabled(boolean enabled)Set whether to enable bearer token authentication. | 
| void | setHeaderName(java.lang.String headerName)Sets the header name to use. | 
| void | setPrefix(java.lang.String prefix)Sets the prefix to use for the auth token. | 
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled in interface io.micronaut.core.util.ToggleableisEnabled in interface BearerTokenConfigurationpublic java.lang.String getPrefix()
getPrefix in interface BearerTokenConfigurationpublic java.lang.String getHeaderName()
getHeaderName in interface BearerTokenConfigurationpublic void setEnabled(boolean enabled)
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