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 Details

  • Constructor Details

    • JwtConfigurationProperties

      public JwtConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface JwtConfiguration
      Specified by:
      isEnabled in interface io.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