@ConfigurationProperties(value="micronaut.security.token") public class TokenConfigurationProperties extends Object implements TokenConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
DEFAULT_ROLES_NAME
Deprecated.
Use
TokenConfiguration.DEFAULT_ROLES_NAME instead |
static String |
PREFIX |
Constructor and Description |
---|
TokenConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getRolesName()
The name in the claims object that stores the granted roles.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Sets whether the configuration is enabled.
|
void |
setRolesName(String rolesName)
Name of the roles property.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
@Deprecated public static final String DEFAULT_ROLES_NAME
TokenConfiguration.DEFAULT_ROLES_NAME
insteadpublic boolean isEnabled()
isEnabled
in interface Toggleable
public String getRolesName()
TokenConfiguration
getRolesName
in interface TokenConfiguration
().
If not specified, defaults to {@link #DEFAULT_ROLES_NAME}.
public void setEnabled(boolean enabled)
enabled
- True if it is enabled