Package io.micronaut.security.endpoints
Class LogoutControllerConfigurationProperties
- java.lang.Object
- 
- io.micronaut.security.endpoints.LogoutControllerConfigurationProperties
 
- 
- All Implemented Interfaces:
- io.micronaut.core.util.Toggleable,- LogoutControllerConfiguration
 
 @Requires(property="micronaut.security.endpoints.logout.enabled", value="true") @ConfigurationProperties("micronaut.security.endpoints.logout") public class LogoutControllerConfigurationProperties extends java.lang.Object implements LogoutControllerConfigurationImplementation ofLogoutControllerConfigurationused to configure theLogoutController.- Since:
- 1.0
- Author:
- Sergio del Amo
 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanDEFAULT_ENABLEDThe default enable value.static booleanDEFAULT_GETALLOWEDDefault Get Allowed.static java.lang.StringDEFAULT_PATHThe default path.static java.lang.StringPREFIX
 - 
Constructor SummaryConstructors Constructor Description LogoutControllerConfigurationProperties()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPath()booleanisEnabled()booleanisGetAllowed()voidsetEnabled(boolean enabled)EnablesLogoutController.voidsetGetAllowed(boolean getAllowed)Enables HTTP GET invocations ofLogoutController.voidsetPath(java.lang.String path)Path to theLogoutController.
 
- 
- 
- 
Field Detail- 
PREFIXpublic static final java.lang.String PREFIX - See Also:
- Constant Field Values
 
 - 
DEFAULT_ENABLEDpublic static final boolean DEFAULT_ENABLED The default enable value.- See Also:
- Constant Field Values
 
 - 
DEFAULT_PATHpublic static final java.lang.String DEFAULT_PATH The default path.- See Also:
- Constant Field Values
 
 - 
DEFAULT_GETALLOWEDpublic static final boolean DEFAULT_GETALLOWED Default Get Allowed.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isEnabledpublic boolean isEnabled() - Specified by:
- isEnabledin interface- io.micronaut.core.util.Toggleable
- Returns:
- true if you want to enable the LogoutController
 
 - 
getPathpublic java.lang.String getPath() - Specified by:
- getPathin interface- LogoutControllerConfiguration
- Returns:
- path
 
 - 
setEnabledpublic void setEnabled(boolean enabled) EnablesLogoutController. Default value false.- Parameters:
- enabled- true if it is
 
 - 
setPathpublic void setPath(java.lang.String path) Path to theLogoutController. Default value "/logout".- Parameters:
- path- The path
 
 - 
isGetAllowedpublic boolean isGetAllowed() - Specified by:
- isGetAllowedin interface- LogoutControllerConfiguration
- Returns:
- true if you want to support HTTP GET invocations in the LogoutController.
 
 - 
setGetAllowedpublic void setGetAllowed(boolean getAllowed) Enables HTTP GET invocations ofLogoutController. Default value (false).- Parameters:
- getAllowed- Whether Http GET should be supported.
 
 
- 
 
-