Package ninja.utils
Class CookieDataCodecTest
- java.lang.Object
-
- ninja.utils.CookieDataCodecTest
-
public class CookieDataCodecTest extends Object
CookieDataCodec and CookieDataCodecTest are imported from Play Framework. Enables us to use the same sessions as Play Framework if the secret is the same. Also really important because we want to make sure that our client side session mechanism is widely used and stable. We don't want to reinvent the wheel of securely encoding / decoding and signing cookie data. All praise goes to Play Framework and their awesome work.
-
-
Constructor Summary
Constructors Constructor Description CookieDataCodecTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bake_in_a_header_a_Unicode_value()
void
bake_in_a_header_an_empty_value()
void
bake_in_an_empty_map()
void
bake_in_multiple_headers_and_values()
void
decode_values_of_the_previously_supported_format()
void
decode_values_of_the_previously_supported_format_with_the_new_delimiters_in_them()
void
decode_values_with_gibberish_in_them()
void
encode_values_such_that_no_extra_keys_can_be_created()
void
flash_cookies_should_bake_in_a_header_and_value()
void
specifically_exclude_control_chars()
void
specifically_exclude_special_cookie_chars()
-
-
-
Method Detail
-
flash_cookies_should_bake_in_a_header_and_value
public void flash_cookies_should_bake_in_a_header_and_value() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
bake_in_multiple_headers_and_values
public void bake_in_multiple_headers_and_values() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
bake_in_a_header_an_empty_value
public void bake_in_a_header_an_empty_value() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
bake_in_a_header_a_Unicode_value
public void bake_in_a_header_a_Unicode_value() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
bake_in_an_empty_map
public void bake_in_an_empty_map() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
encode_values_such_that_no_extra_keys_can_be_created
public void encode_values_such_that_no_extra_keys_can_be_created() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
specifically_exclude_control_chars
public void specifically_exclude_control_chars() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
specifically_exclude_special_cookie_chars
public void specifically_exclude_special_cookie_chars() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
decode_values_of_the_previously_supported_format
public void decode_values_of_the_previously_supported_format() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
decode_values_of_the_previously_supported_format_with_the_new_delimiters_in_them
public void decode_values_of_the_previously_supported_format_with_the_new_delimiters_in_them() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
decode_values_with_gibberish_in_them
public void decode_values_with_gibberish_in_them() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-