|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.essbase.eas.utils.Encryption
public final class Encryption
Title: Encryption.java
Description: Using Cryptix library, this helper class encrypts and decrypts a string using AES (aka. Rijndael) algorithm.
Copyright: Copyright (c) 2002
Company: Hyperion Inc.
Method Summary | |
---|---|
static boolean |
canEncrypt() |
static byte[] |
decrypt(byte[] content) Tranform a byte array encrypted with this class into clear text. |
static java.lang.String |
decrypt(java.lang.String input) Tranform a string into clear text |
static java.lang.String |
decrypt(java.lang.String input, java.lang.String key) |
static byte[] |
encrypt(byte[] content) Encrypt a byte array returning an encrypted byte array |
static java.lang.String |
encrypt(java.lang.String input) Transform the specified String into an encrypted string. |
static java.lang.String |
encrypt(java.lang.String input, java.lang.String key) |
static void |
main(java.lang.String[] args) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean canEncrypt()
public static byte[] encrypt(byte[] content) throws java.lang.Exception
content
-java.lang.Exception
public static java.lang.String encrypt(java.lang.String input) throws java.lang.Exception
String
into an encrypted string.input
-String
java.lang.Exception
public static byte[] decrypt(byte[] content) throws java.lang.Exception
content
- - the encrypted byte arrayjava.lang.Exception
public static java.lang.String decrypt(java.lang.String input) throws java.lang.Exception
Tranform a string into clear text
The string must have been previously encrypted using this class
input
-String
instance initialized to the clear text of the input String
java.lang.Exception
public static java.lang.String decrypt(java.lang.String input, java.lang.String key) throws java.lang.Exception
java.lang.Exception
public static java.lang.String encrypt(java.lang.String input, java.lang.String key) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |