@ConfigurationProperties(value="micronaut.security.token") public class TokenConfigurationProperties extends java.lang.Object implements TokenConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_ROLES_NAME
Deprecated.
Use
TokenConfiguration.DEFAULT_ROLES_NAME instead |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
TokenConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.String rolesName)
Name of the roles property.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
@Deprecated public static final java.lang.String DEFAULT_ROLES_NAME
TokenConfiguration.DEFAULT_ROLES_NAME
insteadpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public java.lang.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 enabledpublic void setRolesName(java.lang.String rolesName)
rolesName
- The roles name