Class DefaultNonceConfiguration
- java.lang.Object
- 
- io.micronaut.security.oauth2.endpoint.nonce.DefaultNonceConfiguration
 
- 
- All Implemented Interfaces:
- io.micronaut.core.util.Toggleable,- NonceConfiguration
 
 @ConfigurationProperties("micronaut.security.oauth2.openid.nonce") public class DefaultNonceConfiguration extends java.lang.Object implements NonceConfigurationConfiguration properties implementation of nonce validation configuration.- Since:
- 1.2.0
- Author:
- James Kleeh
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringPREFIX
 - 
Constructor SummaryConstructors Constructor Description DefaultNonceConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>getPersistence()booleanisEnabled()voidsetEnabled(boolean enabled)Sets whether a nonce parameter will be sent.voidsetPersistence(java.lang.String persistence)Sets the mechanism to persist the nonce for later retrieval for validation.
 
- 
- 
- 
Field Detail- 
PREFIXpublic static final java.lang.String PREFIX - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPersistencepublic java.util.Optional<java.lang.String> getPersistence() - Specified by:
- getPersistencein interface- NonceConfiguration
- Returns:
- The nonce persistence mechanism
 
 - 
setPersistencepublic void setPersistence(java.lang.String persistence) Sets the mechanism to persist the nonce for later retrieval for validation. Supported values ("session", "cookie"). Default value ("cookie").- Parameters:
- persistence- The persistence mechanism
 
 - 
isEnabledpublic boolean isEnabled() - Specified by:
- isEnabledin interface- io.micronaut.core.util.Toggleable
 
 - 
setEnabledpublic void setEnabled(boolean enabled) Sets whether a nonce parameter will be sent. Default (true).- Parameters:
- enabled- The enabled flag
 
 
- 
 
-