Class DefaultNonceConfiguration
java.lang.Object
io.micronaut.security.oauth2.endpoint.nonce.DefaultNonceConfiguration
- All Implemented Interfaces:
 io.micronaut.core.util.Toggleable,NonceConfiguration,PersistableConfiguration
@ConfigurationProperties("micronaut.security.oauth2.openid.nonce")
public class DefaultNonceConfiguration
extends Object
implements NonceConfiguration
Configuration properties implementation of nonce validation configuration.
- Since:
 - 1.2.0
 - Author:
 - James Kleeh
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetEnabled(boolean enabled) Sets whether a nonce parameter will be sent.voidsetPersistence(String persistence) Sets the mechanism to persist the nonce for later retrieval for validation. 
- 
Field Details
- 
PREFIX
- See Also:
 
 - 
PERSISTENCE_COOKIE
- See Also:
 
 - 
PERSISTENCE_SESSION
- See Also:
 
 - 
DEFAULT_PERSISTENCE
- See Also:
 
 - 
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
 
 
 - 
 - 
Constructor Details
- 
DefaultNonceConfiguration
public DefaultNonceConfiguration() 
 - 
 - 
Method Details
- 
getPersistence
- Specified by:
 getPersistencein interfacePersistableConfiguration- Returns:
 - The nonce persistence mechanism
 
 - 
setPersistence
Sets the mechanism to persist the nonce for later retrieval for validation. Supported values ("session", "cookie"). Default value ("cookie").- Parameters:
 persistence- The persistence mechanism
 - 
isEnabled
public boolean isEnabled()- Specified by:
 isEnabledin interfaceio.micronaut.core.util.Toggleable
 - 
setEnabled
public void setEnabled(boolean enabled) Sets whether a nonce parameter will be sent. Default (true).- Parameters:
 enabled- The enabled flag
 
 -