@ConfigurationProperties(value="micronaut.security.oauth2.openid.nonce") public class DefaultNonceConfiguration extends java.lang.Object implements NonceConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_PERSISTENCE |
static java.lang.String |
PERSISTENCE_COOKIE |
static java.lang.String |
PERSISTENCE_SESSION |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
DefaultNonceConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getPersistence() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Sets whether a nonce parameter will be sent.
|
void |
setPersistence(java.lang.String persistence)
Sets the mechanism to persist the nonce for later retrieval for validation.
|
public static final java.lang.String PREFIX
public static final java.lang.String PERSISTENCE_COOKIE
public static final java.lang.String PERSISTENCE_SESSION
public static final java.lang.String DEFAULT_PERSISTENCE
public static final boolean DEFAULT_ENABLED
public java.util.Optional<java.lang.String> getPersistence()
getPersistence
in interface NonceConfiguration
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