| |
|
| java.lang.Object com.jcorporate.expresso.core.misc.CookieBase64
CookieBase64 | public class CookieBase64 (Code) | | Proprietary Base64-like encoding class that makes sure there are no special
characters that are "illegal" to cookies.
author: Michael Rimov |
Method Summary | |
public static byte[] | decodeNoPadding(String data) Note: this function does not process stricly compliant Base64
code. | public static String | encodeNoPadding(byte[] inBuffer) Note: this function does not process stricly compliant Base64
code. |
CookieBase64 | public CookieBase64()(Code) | | |
decodeNoPadding | public static byte[] decodeNoPadding(String data) throws IllegalArgumentException(Code) | | Note: this function does not process stricly compliant Base64
code. To process strictly compliant Base64 encoded strings, use encode
and decode functions with padding
Decodes a Base64 encoded string back into its original binary format.
The only difference from decode is that this function will bad the
end with as many ='s as necessary to make things work properly.
Parameters: data - the Base64 encoded string the byte array of the original data. throws: IllegalArgumentException - if the input data is null or zero bytes. |
encodeNoPadding | public static String encodeNoPadding(byte[] inBuffer) throws IllegalArgumentException(Code) | | Note: this function does not process stricly compliant Base64
code. To process strictly compliant Base64 encoded strings, use encode
and decode functions with padding
Encodes a binary bite array into Base64 coding. The difference between
this and the other encode function, is that this function strips all
padding from the final result before returning
inBuffer[] the byte array to encode. a string that is the Base64 equiv of the input data withoutpadding characters throws: IllegalArgumentException - if the input data is null or zero bytes. |
|
|
|