Class OidcTenantConfig.TokenStateManager
- All Implemented Interfaces:
OidcTenantConfig.TokenStateManager
- Enclosing class:
OidcTenantConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.Supported session cookie key encryption algorithmsstatic enumDeprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Session cookie key encryption algorithmbooleanDeprecated, for removal: This API element is subject to removal in a future version.Mandates that the Default TokenStateManager encrypt the session cookie that stores the tokens.Deprecated, for removal: This API element is subject to removal in a future version.The secret used by the Default TokenStateManager to encrypt the session cookie storing the tokens whenencryptionRequiredproperty is enabled.booleanDeprecated, for removal: This API element is subject to removal in a future version.Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default.Deprecated, for removal: This API element is subject to removal in a future version.Default TokenStateManager strategy. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Session cookie or token key encryption algorithmbooleanDeprecated, for removal: This API element is subject to removal in a future version.Mandates that the TokenStateManager stores tokens in the encrypted form.Deprecated, for removal: This API element is subject to removal in a future version.The secret used by the TokenStateManager to encrypt the session cookie storing the tokens whenOidcTenantConfig.TokenStateManager.encryptionRequired()property is enabled.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.voidsetEncryptionAlgorithm(OidcTenantConfig.TokenStateManager.EncryptionAlgorithm encryptionAlgorithm) Deprecated, for removal: This API element is subject to removal in a future version.voidsetEncryptionRequired(boolean encryptionRequired) Deprecated, for removal: This API element is subject to removal in a future version.voidsetEncryptionSecret(String encryptionSecret) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSplitTokens(boolean splitTokens) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Default TokenStateManager strategy.
-
Field Details
-
strategy
Deprecated, for removal: This API element is subject to removal in a future version.Default TokenStateManager strategy. -
splitTokens
public boolean splitTokensDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Mandates that the Default TokenStateManager encrypt the session cookie that stores the tokens. -
encryptionSecret
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Session cookie key encryption algorithm
-
-
Constructor Details
-
TokenStateManager
public TokenStateManager()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
strategy
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcTenantConfig.TokenStateManagerDefault TokenStateManager strategy.- Specified by:
strategyin interfaceOidcTenantConfig.TokenStateManager
-
splitTokens
public boolean splitTokens()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcTenantConfig.TokenStateManagerMandates that the TokenStateManager stores tokens in the encrypted form. Default TokenStateManager encrypts a session cookie that keeps the tokens. Custom TokenStateManager do not have to encrypt tokens, they will already be encrypted by the time it is asked to store tokens.- Specified by:
encryptionRequiredin interfaceOidcTenantConfig.TokenStateManager
-
encryptionSecret
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcTenantConfig.TokenStateManagerThe secret used by the 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 or token 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, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcTenantConfig.TokenStateManagerSession cookie or token key encryption algorithm- Specified by:
encryptionAlgorithmin interfaceOidcTenantConfig.TokenStateManager
-
isEncryptionRequired
public boolean isEncryptionRequired()Deprecated, for removal: This API element is subject to removal in a future version. -
setEncryptionRequired
public void setEncryptionRequired(boolean encryptionRequired) Deprecated, for removal: This API element is subject to removal in a future version. -
getEncryptionSecret
Deprecated, for removal: This API element is subject to removal in a future version. -
setEncryptionSecret
Deprecated, for removal: This API element is subject to removal in a future version. -
isSplitTokens
public boolean isSplitTokens()Deprecated, for removal: This API element is subject to removal in a future version. -
setSplitTokens
public void setSplitTokens(boolean splitTokens) Deprecated, for removal: This API element is subject to removal in a future version. -
getStrategy
Deprecated, for removal: This API element is subject to removal in a future version. -
setStrategy
Deprecated, for removal: This API element is subject to removal in a future version. -
getEncryptionAlgorithm
Deprecated, for removal: This API element is subject to removal in a future version. -
setEncryptionAlgorithm
public void setEncryptionAlgorithm(OidcTenantConfig.TokenStateManager.EncryptionAlgorithm encryptionAlgorithm) Deprecated, for removal: This API element is subject to removal in a future version.
-
OidcTenantConfigBuilder.TokenStateManagerBuilderbuilder