Package io.quarkus.oidc
Class OidcTenantConfig.TokenStateManager
- java.lang.Object
-
- io.quarkus.oidc.OidcTenantConfig.TokenStateManager
-
- Enclosing class:
- OidcTenantConfig
public static class OidcTenantConfig.TokenStateManager extends Object
Default Authorization Code token state manager configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OidcTenantConfig.TokenStateManager.Strategy
-
Field Summary
Fields Modifier and Type Field Description Optional<Boolean>
encryptionRequired
Requires that the tokens are encrypted before being stored in the cookies.Optional<String>
encryptionSecret
Secret which will be used to encrypt the tokens.boolean
splitTokens
Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default.OidcTenantConfig.TokenStateManager.Strategy
strategy
Default TokenStateManager strategy.
-
Constructor Summary
Constructors Constructor Description TokenStateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getEncryptionSecret()
OidcTenantConfig.TokenStateManager.Strategy
getStrategy()
Optional<Boolean>
isEncryptionRequired()
boolean
isSplitTokens()
void
setEncryptionRequired(boolean encryptionRequired)
void
setEncryptionSecret(String encryptionSecret)
void
setSplitTokens(boolean splitTokens)
void
setStrategy(OidcTenantConfig.TokenStateManager.Strategy strategy)
-
-
-
Field Detail
-
strategy
@ConfigItem(defaultValue="keep_all_tokens") public OidcTenantConfig.TokenStateManager.Strategy strategy
Default TokenStateManager strategy.
-
splitTokens
@ConfigItem(defaultValue="false") public boolean splitTokens
Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default. Enable this property to minimize a session cookie size
-
encryptionRequired
@ConfigItem(defaultValueDocumentation="false") public Optional<Boolean> encryptionRequired
Requires that the tokens are encrypted before being stored in the cookies.
-
encryptionSecret
@ConfigItem public Optional<String> encryptionSecret
Secret which will be used to encrypt the tokens. This secret must be set if the token encryption is required but no client secret is set. The length of the secret which will be used to encrypt the tokens must be 32 characters long.
-
-
Method Detail
-
setEncryptionRequired
public void setEncryptionRequired(boolean encryptionRequired)
-
setEncryptionSecret
public void setEncryptionSecret(String encryptionSecret)
-
isSplitTokens
public boolean isSplitTokens()
-
setSplitTokens
public void setSplitTokens(boolean splitTokens)
-
getStrategy
public OidcTenantConfig.TokenStateManager.Strategy getStrategy()
-
setStrategy
public void setStrategy(OidcTenantConfig.TokenStateManager.Strategy strategy)
-
-