@Requires(classes=io.micronaut.security.authentication.Authentication.class) @ConfigurationProperties(value="micronaut.security.views-model-decorator") public class SecurityViewModelProcessorConfigurationProperties extends Object implements SecurityViewModelProcessorConfiguration
ConfigurationProperties
implementation of SecurityViewModelProcessorConfiguration
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ATTRIBUTESKEY
The default attributesKey value.
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
DEFAULT_PRINCIPALNAME
The default principalNameKey value.
|
static String |
DEFAULT_SECURITYKEY
The default securityKey value.
|
static String |
PREFIX |
Constructor and Description |
---|
SecurityViewModelProcessorConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributesKey() |
String |
getPrincipalNameKey() |
String |
getSecurityKey() |
boolean |
isEnabled() |
void |
setAttributesKey(String attributesKey)
Nested security map key for the user's attributes property.
|
void |
setEnabled(boolean enabled)
Enable
SecurityViewModelProcessor . |
void |
setPrincipalNameKey(String principalNameKey)
Nested security map key for the user's name property.
|
void |
setSecurityKey(String securityKey)
Model key name.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final String DEFAULT_SECURITYKEY
public static final String DEFAULT_PRINCIPALNAME
public static final String DEFAULT_ATTRIBUTESKEY
public SecurityViewModelProcessorConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
SecurityViewModelProcessor
. Default value (true).enabled
- enabled flagpublic void setSecurityKey(String securityKey)
securityKey
- the key name which will be used in the model map.public String getSecurityKey()
getSecurityKey
in interface SecurityViewModelProcessorConfiguration
@Nonnull public String getPrincipalNameKey()
getPrincipalNameKey
in interface SecurityViewModelProcessorConfiguration
@Nonnull public String getAttributesKey()
getAttributesKey
in interface SecurityViewModelProcessorConfiguration
public void setPrincipalNameKey(@Nonnull String principalNameKey)
principalNameKey
- the key which will be used in the nested security map.public void setAttributesKey(@Nonnull String attributesKey)
attributesKey
- the key which will be used in the nested security map.