Package org.keycloak.common.util
Class ServerCookie
java.lang.Object
org.keycloak.common.util.ServerCookie
- All Implemented Interfaces:
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:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
alreadyQuoted
(String value) Deprecated.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.static boolean
Deprecated.- Not usedstatic boolean
containsCTL
(String value, int version) Deprecated.static String
Deprecated.static void
formatOldCookie
(Date d, StringBuffer sb, FieldPosition fp) Deprecated.static String
getCookieHeaderName
(int version) Deprecated.Return the header name to set the cookie, based on cookie version.static boolean
Deprecated.static boolean
Deprecated.static void
maybeQuote
(int version, StringBuffer buf, String value) Deprecated.- Not usedstatic void
maybeQuote2
(int version, StringBuffer buf, String value) Deprecated.Quotes values using rules that vary depending on Cookie version.
-
Field Details
-
GMT_ZONE
Deprecated.GMT timezone - all HTTP dates are on GMT
-
-
Constructor Details
-
ServerCookie
public ServerCookie()Deprecated.
-
-
Method Details
-
isToken
Deprecated. -
containsCTL
Deprecated. -
isToken2
Deprecated. -
checkName
Deprecated.- Not used -
getCookieHeaderName
Deprecated.Return the header name to set the cookie, based on cookie version. -
formatOldCookie
Deprecated. -
formatOldCookie
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.- Not used -
alreadyQuoted
Deprecated. -
maybeQuote2
Deprecated.Quotes values using rules that vary depending on Cookie version.- Parameters:
version
-buf
-value
-
-