Class KeysControllerConfigurationProperties
- java.lang.Object
-
- io.micronaut.security.token.jwt.endpoints.KeysControllerConfigurationProperties
-
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable,KeysControllerConfiguration
@Requires(property="micronaut.security.endpoints.keys.enabled", value="true") @ConfigurationProperties("micronaut.security.endpoints.keys") public class KeysControllerConfigurationProperties extends java.lang.Object implements KeysControllerConfigurationConfigures theKeysController.- Since:
- 1.1.0
- Author:
- Sergio del Amo
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEDThe default enable value.static java.lang.StringDEFAULT_PATHThe default path.static java.lang.StringPREFIX
-
Constructor Summary
Constructors Constructor Description KeysControllerConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPath()The path where theKeysControllercan be accessed at.booleanisEnabled()voidsetEnabled(boolean enabled)EnablesKeysController.voidsetPath(java.lang.String path)Path to theKeysController.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
The default enable value.- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default path.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
- true if you want to enable the
KeysController.
-
getPath
public java.lang.String getPath()
Description copied from interface:KeysControllerConfigurationThe path where theKeysControllercan be accessed at.- Specified by:
getPathin interfaceKeysControllerConfiguration- Returns:
- The path e.g. /keys
-
setEnabled
public void setEnabled(boolean enabled)
EnablesKeysController. Default value false.- Parameters:
enabled- True if it is enabled
-
setPath
public void setPath(java.lang.String path)
Path to theKeysController. Default value "/keys".- Parameters:
path- The path
-
-