Class ServerCookie

java.lang.Object
org.keycloak.common.util.ServerCookie
All Implemented Interfaces:
Serializable

@Deprecated public class ServerCookie extends Object implements Serializable
Deprecated.
Should not be used on the Keycloak server-side, or in extensions. Will be removed when no longer used by adapters
Server-side cookie representation. borrowed from Tomcat.
See Also:
  • Field Details

    • GMT_ZONE

      public static final TimeZone GMT_ZONE
      Deprecated.
      GMT timezone - all HTTP dates are on GMT
  • Constructor Details

    • ServerCookie

      public ServerCookie()
      Deprecated.
  • Method Details

    • isToken

      public static boolean isToken(String value)
      Deprecated.
    • containsCTL

      public static boolean containsCTL(String value, int version)
      Deprecated.
    • isToken2

      public static boolean isToken2(String value)
      Deprecated.
    • checkName

      public static boolean checkName(String name)
      Deprecated.
      - Not used
    • getCookieHeaderName

      public static String getCookieHeaderName(int version)
      Deprecated.
      Return the header name to set the cookie, based on cookie version.
    • formatOldCookie

      public static String formatOldCookie(Date d)
      Deprecated.
    • formatOldCookie

      public static void formatOldCookie(Date d, StringBuffer sb, FieldPosition fp)
      Deprecated.
    • appendCookieValue

      public static void appendCookieValue(StringBuilder headerBuf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure, boolean httpOnly, ServerCookie.SameSiteAttributeValue sameSite)
      Deprecated.
    • maybeQuote

      @Deprecated public static void maybeQuote(int version, StringBuffer buf, String value)
      Deprecated.
      - Not used
    • alreadyQuoted

      public static boolean alreadyQuoted(String value)
      Deprecated.
    • maybeQuote2

      public static void maybeQuote2(int version, StringBuffer buf, String value)
      Deprecated.
      Quotes values using rules that vary depending on Cookie version.
      Parameters:
      version -
      buf -
      value -