Class PkceConfigurationProperties
java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.pkce.PkceConfigurationProperties
- All Implemented Interfaces:
- io.micronaut.core.util.Toggleable,- PkceConfiguration,- PersistableConfiguration
@ConfigurationProperties("micronaut.security.oauth2.pkce")
public class PkceConfigurationProperties
extends Object
implements PkceConfiguration
Configuration properties implementation of PKCE.
- Since:
- 3.9.0
- Author:
- Nemanja Mikic
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanvoidsetEnabled(boolean enabled) Sets whether a state parameter will be sent.voidsetEntropy(int entropy) entropy (in bytes) used for the code verifier generation.voidsetPersistence(String persistence) Sets the mechanism to persist the state for later retrieval for validation.
- 
Field Details- 
PREFIX- See Also:
 
- 
DEFAULT_ENABLEDpublic static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
 
- 
PERSISTENCE_COOKIE- See Also:
 
- 
PERSISTENCE_SESSION- See Also:
 
 
- 
- 
Constructor Details- 
PkceConfigurationPropertiespublic PkceConfigurationProperties()
 
- 
- 
Method Details- 
getEntropypublic int getEntropy()- Specified by:
- getEntropyin interface- PkceConfiguration
- Returns:
- entropy (in bytes) used for the code verifier generation.
 
- 
setEntropypublic void setEntropy(int entropy) entropy (in bytes) used for the code verifier generation. Default value 64.- Parameters:
- entropy- entropy (in bytes) used for the code verifier.
 
- 
getPersistence- Specified by:
- getPersistencein interface- PersistableConfiguration
- Returns:
- The nonce persistence mechanism
 
- 
setPersistenceSets the mechanism to persist the state 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 state parameter will be sent. Default (true).- Parameters:
- enabled- The enabled flag
 
 
-