Skip navigation links


com.essbase.eas.utils
Class Encryption

java.lang.Object
  extended by com.essbase.eas.utils.Encryption


public final class Encryption
extends java.lang.Object

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.

Version:
1.0
Author:
Khanh Nguyen

Field Summary
static java.util.List<java.lang.String> PARAMS_TO_ENCRYPT
           

 

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 java.util.Map<java.lang.String,java.lang.String[]> drp(java.util.Map<java.lang.String,java.lang.String[]> paramsMap)
           
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 java.util.Map<java.lang.String,java.lang.String> erp(java.util.Map<java.lang.String,java.lang.String> paramsMap)
           
static boolean isEncryptedString(java.lang.String value)
           
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

 

Field Detail

PARAMS_TO_ENCRYPT

public static final java.util.List<java.lang.String> PARAMS_TO_ENCRYPT

Method Detail

canEncrypt

public static boolean canEncrypt()

encrypt

public static byte[] encrypt(byte[] content)
                      throws java.lang.Exception
Encrypt a byte array returning an encrypted byte array
Parameters:
content -
Returns:
Throws:
java.lang.Exception

encrypt

public static java.lang.String encrypt(java.lang.String input)
                                throws java.lang.Exception
Transform the specified String into an encrypted string.
Parameters:
input -
Returns:
a new encrypted String
Throws:
java.lang.Exception

decrypt

public static byte[] decrypt(byte[] content)
                      throws java.lang.Exception
Tranform a byte array encrypted with this class into clear text.
Parameters:
content - - the encrypted byte array
Returns:
a new byte array consisting of the decrypted bytes
Throws:
java.lang.Exception

decrypt

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

Parameters:
input -
Returns:
a new String instance initialized to the clear text of the input String
Throws:
java.lang.Exception

decrypt

public static java.lang.String decrypt(java.lang.String input,
                                       java.lang.String key)
                                throws java.lang.Exception
Throws:
java.lang.Exception

encrypt

public static java.lang.String encrypt(java.lang.String input,
                                       java.lang.String key)
                                throws java.lang.Exception
Throws:
java.lang.Exception

erp

public static java.util.Map<java.lang.String,java.lang.String> erp(java.util.Map<java.lang.String,java.lang.String> paramsMap)

drp

public static java.util.Map<java.lang.String,java.lang.String[]> drp(java.util.Map<java.lang.String,java.lang.String[]> paramsMap)

isEncryptedString

public static boolean isEncryptedString(java.lang.String value)

main

public static void main(java.lang.String[] args)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.