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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@NonNull StringgetPath()booleanvoidsetEnabled(boolean enabled) EnablesKeysController.voidPath to theKeysController.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.security.endpoints.ControllerConfigurationgetPostContentTypes, getUnsupportedPostContentTypeStatus
- 
Field Details- 
PREFIX- See Also:
 
- 
DEFAULT_ENABLEDpublic static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
 
- 
DEFAULT_PATHThe default path.- See Also:
 
 
- 
- 
Constructor Details- 
KeysControllerConfigurationPropertiespublic KeysControllerConfigurationProperties()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()- Specified by:
- isEnabledin interface- io.micronaut.core.util.Toggleable
- Returns:
- true if you want to enable the KeysController.
 
- 
getPath- Specified by:
- getPathin interface- ControllerConfiguration
- Returns:
- the path where the controller is enabled.
 
- 
setEnabledpublic void setEnabled(boolean enabled) EnablesKeysController. Default value true.- Parameters:
- enabled- True if it is enabled
 
- 
setPathPath to theKeysController. Default value "/keys".- Parameters:
- path- The path
 
 
-