Class JwtConfigurationProperties
java.lang.Object
io.micronaut.security.token.jwt.config.JwtConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,JwtConfiguration
@Requires(property="micronaut.security.token.enabled",
notEquals="false")
@ConfigurationProperties("micronaut.security.token.jwt")
public class JwtConfigurationProperties
extends Object
implements JwtConfiguration
JwtConfiguration
implementation.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) Sets whether JWT security is enabled.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
JwtConfigurationProperties
public JwtConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceJwtConfiguration
- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- a boolean flag indicating whether JWT beans should be enabled or not
-
setEnabled
public void setEnabled(boolean enabled) Sets whether JWT security is enabled. Default value (true).- Parameters:
enabled
- True if it is
-