| java.lang.Object com.jcorporate.expresso.core.misc.CookieUtil
CookieUtil | public class CookieUtil (Code) | | A utility class for encoding and decoding cookies before sending them
to the browser
author: Michael Rimov since: Expresso 3.0 |
Method Summary | |
public static String | cookieDecode(String data) cookieDecode - given a string, encrypt it to block plaintext snooping
traffic to catch user ids and passwords.
Parameters: data - The data to decrypt. | public static String | cookieEncode(String data) cookieEncode - given a string, encrypt it to block plaintext snooping
traffic to catch user ids and passwords. | public static void | test() |
CookieUtil | public CookieUtil()(Code) | | |
cookieDecode | public static String cookieDecode(String data) throws Exception(Code) | | cookieDecode - given a string, encrypt it to block plaintext snooping
traffic to catch user ids and passwords.
Parameters: data - The data to decrypt. String the decoded string or "" if it doesn't decode. throws: Exception - if there are problems with loading the crypto routines |
cookieEncode | public static String cookieEncode(String data) throws ChainedException(Code) | | cookieEncode - given a string, encrypt it to block plaintext snooping
traffic to catch user ids and passwords. Also Base64 Encodes the
ciphertext so that the result is standard Ascii string handling.
Parameters: data - The data to encrypt. String the encode string or "" if it doesn't encode. throws: ChainedException - if there are problems with loading the crypto routines |
test | public static void test()(Code) | | |
|
|