Class AuthenticationStateCookie

java.lang.Object
org.keycloak.forms.login.freemarker.AuthenticationStateCookie

public class AuthenticationStateCookie extends Object
Non http-only cookie with tracking remaining authSessions in current root authentication session
Author:
Marek Posolda
  • Field Details

  • Constructor Details

    • AuthenticationStateCookie

      public AuthenticationStateCookie()
  • Method Details

    • getAuthSessionId

      public String getAuthSessionId()
    • setAuthSessionId

      public void setAuthSessionId(String authSessionId)
    • getRemainingTabs

      public Set<String> getRemainingTabs()
    • setRemainingTabs

      public void setRemainingTabs(Set<String> remainingTabs)
    • generateAndSetCookie

      public static void generateAndSetCookie(KeycloakSession session, RootAuthenticationSessionModel rootAuthSession, int cookieMaxAge)
    • expireCookie

      public static void expireCookie(KeycloakSession session)
    • toString

      public String toString()
      Overrides:
      toString in class Object