|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wcp.sip.security.utils.JSafeEncryptionUtil
Class to encrypt and decrypt the customer data used for external systems. Key requirement for this data is that reversible encryption be necessary - i.e. someone must present this data in clear form someplace. This class can be used on command line. Please see the usage for details.
Constructor Summary | |
JSafeEncryptionUtil(byte[] key,
byte[] initVector,
java.lang.String algorithm)
Package access constructor to be called by the EncryptionServiceFactory instance associated with this service |
Method Summary | |
byte[] |
decryptBytes(byte[] data)
Decrypt this byte array. |
java.lang.String |
decryptString(byte[] encryptedString)
decrypts the byte array into clear text string |
byte[] |
encryptBytes(byte[] data)
Encrypt this byte array. |
byte[] |
encryptString(java.lang.String clearText)
Encrypts a string in clear text |
static void |
main(java.lang.String[] args)
The main method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSafeEncryptionUtil(byte[] key, byte[] initVector, java.lang.String algorithm) throws weblogic.security.internal.encryption.EncryptionServiceException
weblogic.security.internal.encryption.EncryptionServiceException
Method Detail |
public byte[] decryptBytes(byte[] data) throws weblogic.security.internal.encryption.EncryptionServiceException
data
- input byte array
weblogic.security.internal.encryption.EncryptionServiceException
public java.lang.String decryptString(byte[] encryptedString) throws weblogic.security.internal.encryption.EncryptionServiceException
encryptedString
-
weblogic.security.internal.encryption.EncryptionServiceException
public byte[] encryptBytes(byte[] data) throws weblogic.security.internal.encryption.EncryptionServiceException
data
- input byte array
weblogic.security.internal.encryption.EncryptionServiceException
public byte[] encryptString(java.lang.String clearText) throws weblogic.security.internal.encryption.EncryptionServiceException
clearText
- clear text string
weblogic.security.internal.encryption.EncryptionServiceException
public static void main(java.lang.String[] args)
Usages:
java com.bea.wcp.sip.security.utils.JSafeEncryptionUtil (print usage)
java com.bea.wcp.sip.security.utils.JSafeEncryptionUtil test (test the encryption and decryption)
java com.bea.wcp.sip.security.utils.JSafeEncryptionUtil exposedefaultkeyandinitvector (expose a default key and init vector as base64 encoded byte array.)
java com.bea.wcp.sip.security.utils.JSafeEncryptionUtil encryption stringvalue algorithm encrytionKey, initVector (encrypt the given string use default key and init vector)
java com.bea.wcp.sip.security.utils.JSafeEncryptionUtil decryption stringvalue algorithm encrytionKey, initVector (encrypt the given string use default key and init vector)
|
Documentation is available at http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss31/ Copyright 2007 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |