public class ReportEncryptionBase
extends java.lang.Object
Constructor and Description |
---|
ReportEncryptionBase() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decrypt(java.lang.String algorithm,
java.lang.String input,
boolean doURLDecoding)
The static method to decrypt a string.
|
static java.lang.String |
encrypt(java.lang.String algorithm,
java.lang.String input,
boolean doURLEncoding)
The static method to encrypt a string.
|
public static java.lang.String encrypt(java.lang.String algorithm, java.lang.String input, boolean doURLEncoding) throws java.lang.Exception
input
- The algorithm to use.input
- The input string to be encrypted.doURLEncoding
- True to perform URLEncoding before returning the value.
This supports passing a value to/from the browser.java.lang.Exception
public static java.lang.String decrypt(java.lang.String algorithm, java.lang.String input, boolean doURLDecoding) throws java.lang.Exception
input
- The algorithm to use.input
- The input string to be decrypted.doURLDecoding
- True to perform URLDecoding before decrypting.
This supports a value passed to/from the browser.java.lang.Exception