public class CookieDataCodec extends Object
| Constructor and Description |
|---|
CookieDataCodec() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decode(Map<String,String> map,
String data) |
static String |
encode(Map<String,String> map) |
static boolean |
safeEquals(String a,
String b)
Constant time for same length String comparison, to prevent timing attacks
|
public static void decode(Map<String,String> map, String data) throws UnsupportedEncodingException
map - the map to decode data into.data - the data to decode.UnsupportedEncodingExceptionpublic static String encode(Map<String,String> map) throws UnsupportedEncodingException
map - the data to encode.UnsupportedEncodingExceptionCopyright © 2019 ninjaframework. All rights reserved.