Class OidcTenantConfig.TokenStateManager

  • Enclosing class:
    OidcTenantConfig

    public static class OidcTenantConfig.TokenStateManager
    extends Object
    Default Authorization Code token state manager configuration
    • Field Detail

      • 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(defaultValue="true")
        public 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.
    • Constructor Detail

      • TokenStateManager

        public TokenStateManager()
    • Method Detail

      • isEncryptionRequired

        public boolean isEncryptionRequired()
      • setEncryptionRequired

        public void setEncryptionRequired​(boolean encryptionRequired)
      • setEncryptionSecret

        public void setEncryptionSecret​(String encryptionSecret)
      • isSplitTokens

        public boolean isSplitTokens()
      • setSplitTokens

        public void setSplitTokens​(boolean splitTokens)