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