|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.util.EncodingUtil
public class EncodingUtil
Class containing utility methods for encoding.
| Field Summary | |
|---|---|
static java.lang.String |
ZIP_CHARSET
Name of a supported charset |
| Constructor Summary | |
|---|---|
EncodingUtil()
|
|
| Method Summary | |
|---|---|
java.lang.String |
calculateStateHash(java.lang.String data)
Calculate data hash value. |
java.lang.Object |
decode64(java.lang.String s)
Decodes Base64 alphabet characters of the string s and
decompresses it. |
java.lang.Object |
decode64Cipher(java.lang.String s)
Decodes Base64 alphabet characters of the string s, decrypts
this string and finally decompresses it. |
java.lang.String |
encode64(java.lang.Object obj)
The object obj is compressed and coded in Base64. |
java.lang.String |
encode64Cipher(java.lang.Object obj)
The object obj is compressed, encrypted and coded in Base64. |
ISession |
getSession()
|
void |
init()
Initialize the EncodingUtil with Http Session and message resource. |
void |
initTesting()
Initialize the EncodingUtil with message resource. |
void |
setAlgorithmName(java.lang.String algorithmName)
|
void |
setMessageDigest(java.security.MessageDigest md)
|
void |
setSession(ISession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ZIP_CHARSET
| Constructor Detail |
|---|
public EncodingUtil()
| Method Detail |
|---|
public void init()
public void initTesting()
public java.lang.String encode64Cipher(java.lang.Object obj)
obj is compressed, encrypted and coded in Base64.
obj - Object to encrypt
obj compressed, encrypted and coded in Base64
HDIVException - if there is an error encoding object dataGZIPOutputStream.GZIPOutputStream(java.io.OutputStream),
URLCodec.encodeUrl(java.util.BitSet, byte[]),
Base64.encode(byte[])public java.lang.Object decode64Cipher(java.lang.String s)
s, decrypts
this string and finally decompresses it.
s - data to decrypt
HDIVException - if there is an error decoding object dataBase64.decode(byte[]),
URLCodec.decode(byte[]),
GZIPInputStream.GZIPInputStream(java.io.InputStream)public java.lang.String encode64(java.lang.Object obj)
obj is compressed and coded in Base64.
obj - Object to encode
obj compressed y encoded in Base64
HDIVException - if there is an error encoding object dataGZIPOutputStream.GZIPOutputStream(java.io.OutputStream),
URLCodec.encodeUrl(java.util.BitSet, byte[]),
Base64.encode(byte[])public java.lang.Object decode64(java.lang.String s)
s and
decompresses it.
s - data to decode
s string
HDIVException - if there is an error decoding object dataBase64.decode(byte[]),
URLCodec.decode(byte[]),
GZIPInputStream.GZIPInputStream(java.io.InputStream)public java.lang.String calculateStateHash(java.lang.String data)
data hash value.
data - data
data hash valuepublic ISession getSession()
public void setSession(ISession session)
session - The session to set.public void setMessageDigest(java.security.MessageDigest md)
md - The message digest to set.public void setAlgorithmName(java.lang.String algorithmName)
algorithm - The algorithm to set for the message digest.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||