Deprecated
Should not be used on the Keycloak server-side, or in extensions. Will be removed when no longer used by adapters
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final TimeZone | GMT_ZONE
GMT timezone - all HTTP dates are on GMT |
| private static final Locale | LOCALE_US
US locale - all HTTP dates are in english |
| private static final DateFormat | |
| private static final String | OLD_COOKIE_PATTERN
Pattern used for old cookies |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| 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.
|
| public static boolean | |
| public static boolean | |
| private static String | Returns: The (possibly) escaped stringthe input string s, int start index inclusive beginIndex, int exclusive endIndex)Escapes any double quotes in the given string. |
| public static String | |
| public static void | |
| public static String | |
| public static boolean | |
| public static boolean | |
| public static void | |
| public static void | maybeQuote2(int version, StringBuffer buf, String value)
Quotes values using rules that vary depending on Cookie version. |
| ancientDate | back to summary |
|---|---|
| private static final String ancientDate | |
| GMT_ZONE | back to summary |
|---|---|
| public static final TimeZone GMT_ZONE GMT timezone - all HTTP dates are on GMT | |
| LOCALE_US | back to summary |
|---|---|
| private static final Locale LOCALE_US US locale - all HTTP dates are in english | |
| OLD_COOKIE_FORMAT | back to summary |
|---|---|
| private static final DateFormat OLD_COOKIE_FORMAT | |
| OLD_COOKIE_PATTERN | back to summary |
|---|---|
| private static final String OLD_COOKIE_PATTERN Pattern used for old cookies | |
| tspecials | back to summary |
|---|---|
| private static final String tspecials | |
| tspecials2 | back to summary |
|---|---|
| private static final String tspecials2 | |
| ServerCookie | back to summary |
|---|---|
| public ServerCookie() | |
| alreadyQuoted | back to summary |
|---|---|
| public static boolean alreadyQuoted(String value) | |
| appendCookieValue | back to summary |
|---|---|
| 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. | |
| checkName | back to summary |
|---|---|
| public static boolean checkName(String name)
Deprecated - Not used | |
| containsCTL | back to summary |
|---|---|
| public static boolean containsCTL(String value, int version) | |
| escapeDoubleQuotes | back to summary |
|---|---|
| private static String escapeDoubleQuotes(String s, int beginIndex, int endIndex) Escapes any double quotes in the given string. | |
| formatOldCookie | back to summary |
|---|---|
| public static String formatOldCookie(Date d) | |
| formatOldCookie | back to summary |
|---|---|
| public static void formatOldCookie(Date d, StringBuffer sb, FieldPosition fp) | |
| getCookieHeaderName | back to summary |
|---|---|
| public static String getCookieHeaderName(int version) Return the header name to set the cookie, based on cookie version. | |
| isToken | back to summary |
|---|---|
| public static boolean isToken(String value) | |
| isToken2 | back to summary |
|---|---|
| public static boolean isToken2(String value) | |
| maybeQuote | back to summary |
|---|---|
| public static void maybeQuote(int version, StringBuffer buf, String value)
Deprecated - Not used
| |
| maybeQuote2 | back to summary |
|---|---|
| public static void maybeQuote2(int version, StringBuffer buf, String value) Quotes values using rules that vary depending on Cookie version. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServerCookie. | |
| public static final ServerCookie. | |
| private final String | |
| public static final ServerCookie. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static ServerCookie. | |
| public static ServerCookie. |
| LAX | back to summary |
|---|---|
| public static final ServerCookie. | |
| NONE | back to summary |
|---|---|
| public static final ServerCookie. | |
| specValue | back to summary |
|---|---|
| private final String specValue | |
| STRICT | back to summary |
|---|---|
| public static final ServerCookie. | |
| SameSiteAttributeValue | back to summary |
|---|---|
| private SameSiteAttributeValue(String specValue) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static ServerCookie. | |
| values | back to summary |
|---|---|
| public static ServerCookie. | |