@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
The default roles name.
|
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
public static final String DEFAULT_ROLES_NAME
public boolean isEnabled()
isEnabled in interface Toggleablepublic String getRolesName()
TokenConfigurationgetRolesName in interface TokenConfiguration().
If not specified, defaults to {@link #DEFAULT_ROLES_NAME}.public void setEnabled(boolean enabled)
enabled - True if it is enabled