Class OidcTenantConfig.TokenStateManager
- All Implemented Interfaces:
OidcTenantConfig.TokenStateManager
- Enclosing class:
- OidcTenantConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Supported session cookie key encryption algorithmsstatic enumDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Session cookie key encryption algorithmbooleanDeprecated.Mandates that the Default TokenStateManager encrypt the session cookie that stores the tokens.Deprecated.The secret used by the Default TokenStateManager to encrypt the session cookie storing the tokens whenencryptionRequiredproperty is enabled.booleanDeprecated.Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default.Deprecated.Default TokenStateManager strategy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Session cookie key encryption algorithmbooleanDeprecated.Mandates that the Default TokenStateManager encrypt the session cookie that stores the tokens.Deprecated.The secret used by the Default TokenStateManager to encrypt the session cookie storing the tokens whenOidcTenantConfig.TokenStateManager.encryptionRequired()property is enabled.Deprecated.Deprecated.Deprecated.booleanDeprecated.booleanDeprecated.voidsetEncryptionAlgorithm(OidcTenantConfig.TokenStateManager.EncryptionAlgorithm encryptionAlgorithm) Deprecated.voidsetEncryptionRequired(boolean encryptionRequired) Deprecated.voidsetEncryptionSecret(String encryptionSecret) Deprecated.voidsetSplitTokens(boolean splitTokens) Deprecated.voidDeprecated.booleanDeprecated.Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default.strategy()Deprecated.Default TokenStateManager strategy.
-
Field Details
-
strategy
Deprecated.Default TokenStateManager strategy. -
splitTokens
public boolean splitTokensDeprecated.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
public boolean encryptionRequiredDeprecated.Mandates that the Default TokenStateManager encrypt the session cookie that stores the tokens. -
encryptionSecret
Deprecated.The secret used by the Default TokenStateManager to encrypt the session cookie storing the tokens whenencryptionRequiredproperty is enabled.If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` is checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication is checked. The secret is auto-generated every time an application starts if it remains uninitialized after checking all of these properties. Generated secret can not decrypt the session cookie encrypted before the restart, therefore a user re-authentication will be required.
The length of the secret used to encrypt the tokens should be at least 32 characters long. A warning is logged if the secret length is less than 16 characters.
-
encryptionAlgorithm
Deprecated.Session cookie key encryption algorithm
-
-
Constructor Details
-
TokenStateManager
public TokenStateManager()Deprecated.
-
-
Method Details
-
strategy
Deprecated.Description copied from interface:OidcTenantConfig.TokenStateManagerDefault TokenStateManager strategy.- Specified by:
strategyin interfaceOidcTenantConfig.TokenStateManager
-
splitTokens
public boolean splitTokens()Deprecated.Description copied from interface:OidcTenantConfig.TokenStateManagerDefault 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- Specified by:
splitTokensin interfaceOidcTenantConfig.TokenStateManager
-
encryptionRequired
public boolean encryptionRequired()Deprecated.Description copied from interface:OidcTenantConfig.TokenStateManagerMandates that the Default TokenStateManager encrypt the session cookie that stores the tokens.- Specified by:
encryptionRequiredin interfaceOidcTenantConfig.TokenStateManager
-
encryptionSecret
Deprecated.Description copied from interface:OidcTenantConfig.TokenStateManagerThe secret used by the Default TokenStateManager to encrypt the session cookie storing the tokens whenOidcTenantConfig.TokenStateManager.encryptionRequired()property is enabled.If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` is checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication is checked. The secret is auto-generated every time an application starts if it remains uninitialized after checking all of these properties. Generated secret can not decrypt the session cookie encrypted before the restart, therefore a user re-authentication will be required.
The length of the secret used to encrypt the tokens should be at least 32 characters long. A warning is logged if the secret length is less than 16 characters.
- Specified by:
encryptionSecretin interfaceOidcTenantConfig.TokenStateManager
-
encryptionAlgorithm
Deprecated.Description copied from interface:OidcTenantConfig.TokenStateManagerSession cookie key encryption algorithm- Specified by:
encryptionAlgorithmin interfaceOidcTenantConfig.TokenStateManager
-
isEncryptionRequired
public boolean isEncryptionRequired()Deprecated. -
setEncryptionRequired
public void setEncryptionRequired(boolean encryptionRequired) Deprecated. -
getEncryptionSecret
Deprecated. -
setEncryptionSecret
Deprecated. -
isSplitTokens
public boolean isSplitTokens()Deprecated. -
setSplitTokens
public void setSplitTokens(boolean splitTokens) Deprecated. -
getStrategy
Deprecated. -
setStrategy
Deprecated. -
getEncryptionAlgorithm
Deprecated. -
setEncryptionAlgorithm
public void setEncryptionAlgorithm(OidcTenantConfig.TokenStateManager.EncryptionAlgorithm encryptionAlgorithm) Deprecated.
-
OidcTenantConfigBuilder.TokenStateManagerBuilderbuilder