public class CookieHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN |
static String |
PATH |
static String |
VERSION |
| Constructor and Description |
|---|
CookieHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,io.undertow.server.handlers.Cookie> |
parseRequestCookies(int maxCookies,
boolean allowEqualInValue,
List<String> cookies)
/**
Parses the cookies from a list of "Cookie:" header values.
|
public static final String DOMAIN
public static final String VERSION
public static final String PATH
public static Map<String,io.undertow.server.handlers.Cookie> parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies)
cookie = "Cookie:" cookie-version
1*((";" | ",") cookie-value)
cookie-value = NAME "=" VALUE [";" path] [";" domain]
cookie-version = "$Version" "=" value
NAME = attr
VALUE = value
path = "$Path" "=" value
domain = "$Domain" "=" value
maxCookies - The maximum number of cookies. Used to prevent hash collision attacksallowEqualInValue - if true equal characters are allowed in cookie valuescookies - The cookie values to parseCookie,
rfc2109Copyright © 2020. All rights reserved.