public class PunchoutPaymentUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decodeByURL(java.lang.String content,
java.lang.String charset)
Decode the content using URL decoder.
|
static java.lang.String |
encodeByURL(java.lang.String content,
java.lang.String charset)
Encode the content using URL
encoder . |
static java.lang.String |
encryptByMD5(java.lang.String content,
java.lang.String charset)
Deprecated.
Sample code that uses MD5 hashing algorithm. Customers are recommended to use
more secure hashing algorithm, for example SHA-256.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String encodeByURL(java.lang.String content, java.lang.String charset) throws EncodingException
encoder
.content
- content needed to be encodedcharset
- the charset
of the contentEncodingException
- if encoding encounter errorsURLEncoder.encode(java.lang.String, java.lang.String)
public static java.lang.String decodeByURL(java.lang.String content, java.lang.String charset) throws EncodingException
content
- content needed to be encodedcharset
- the charset
of the contentEncodingException
- if encoding encounter errorsURLEncoder.encode(java.lang.String, java.lang.String)
public static java.lang.String encryptByMD5(java.lang.String content, java.lang.String charset) throws EncryptionException
MD5
.content
- content which needs to be encryptedcharset
- the charset
of the contentEncryptionException
- in case encrypt encounter errors