@ConfigurationProperties(value="micronaut.security.oauth2.state") public class DefaultStateConfiguration extends java.lang.Object implements StateValidationConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
DefaultStateConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getPersistence() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Sets whether a state parameter will be sent.
|
void |
setPersistence(java.lang.String persistence)
Sets the mechanism to persist the state for later retrieval for validation.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public java.util.Optional<java.lang.String> getPersistence()
getPersistence
in interface StateValidationConfiguration
public void setPersistence(java.lang.String persistence)
persistence
- The persistence mechanismpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- The enabled flag