|
Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wcp.sip.security.utils.JSafeEncryptionUtil
public final class 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
key
- initVector
- algorithm
-
weblogic.security.internal.encryption.EncryptionServiceException
Method Detail |
---|
public byte[] encryptBytes(byte[] data) throws weblogic.security.internal.encryption.EncryptionServiceException
data
- input byte array
weblogic.security.internal.encryption.EncryptionServiceException
public byte[] decryptBytes(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 java.lang.String decryptString(byte[] encryptedString) throws weblogic.security.internal.encryption.EncryptionServiceException
encryptedString
-
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)
|
Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |