@Requires(property="micronaut.security.endpoints.logout.enabled", notEquals="false", defaultValue="true") @ConfigurationProperties(value="micronaut.security.endpoints.logout") public class LogoutControllerConfigurationProperties extends java.lang.Object implements LogoutControllerConfiguration
LogoutControllerConfiguration
used to configure the LogoutController
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_GETALLOWED
Default Get Allowed.
|
static java.lang.String |
DEFAULT_PATH
The default path.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
LogoutControllerConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath() |
boolean |
isEnabled() |
boolean |
isGetAllowed() |
void |
setEnabled(boolean enabled)
Enables
LogoutController . |
void |
setGetAllowed(boolean getAllowed)
Enables HTTP GET invocations of
LogoutController . |
void |
setPath(java.lang.String path)
Path to the
LogoutController . |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_PATH
public static final boolean DEFAULT_GETALLOWED
public LogoutControllerConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
LogoutController
@NonNull public java.lang.String getPath()
getPath
in interface ControllerConfiguration
public void setEnabled(boolean enabled)
LogoutController
. Default value true.enabled
- true if it ispublic void setPath(java.lang.String path)
LogoutController
. Default value "/logout".path
- The pathpublic boolean isGetAllowed()
isGetAllowed
in interface LogoutControllerConfiguration
LogoutController
.public void setGetAllowed(boolean getAllowed)
LogoutController
. Default value (false).getAllowed
- Whether Http GET should be supported.