Class KeysControllerConfigurationProperties

java.lang.Object
io.micronaut.security.token.jwt.endpoints.KeysControllerConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, ControllerConfiguration, KeysControllerConfiguration

@Requires(property="micronaut.security.endpoints.keys.enabled", notEquals="false", defaultValue="true") @ConfigurationProperties("micronaut.security.endpoints.keys") public class KeysControllerConfigurationProperties extends Object implements KeysControllerConfiguration
Configures the KeysController.
Since:
1.1.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • KeysControllerConfigurationProperties

      public KeysControllerConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      true if you want to enable the KeysController.
    • getPath

      @NonNull public @NonNull String getPath()
      Specified by:
      getPath in interface ControllerConfiguration
      Returns:
      the path where the controller is enabled.
    • setEnabled

      public void setEnabled(boolean enabled)
      Enables KeysController. Default value true.
      Parameters:
      enabled - True if it is enabled
    • setPath

      public void setPath(String path)
      Path to the KeysController. Default value "/keys".
      Parameters:
      path - The path