com.ibm.di.security
Class SecurityCrypto

java.lang.Object
  extended by com.ibm.di.security.SecurityCrypto

public class SecurityCrypto
extends Object


Constructor Summary
SecurityCrypto(String keyPath)
           
SecurityCrypto(String keyPath, String cipherAlg)
           
 
Method Summary
 byte[] decrypt(byte[] input)
           
 byte[] encrypt(byte[] input)
           
 String getDecrypted(String input)
           
 String getEncrypted(byte[] input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityCrypto

public SecurityCrypto(String keyPath)
               throws Exception
Throws:
Exception

SecurityCrypto

public SecurityCrypto(String keyPath,
                      String cipherAlg)
               throws Exception
Throws:
Exception
Method Detail

getDecrypted

public String getDecrypted(String input)
                    throws Exception
Throws:
Exception

getEncrypted

public String getEncrypted(byte[] input)
                    throws Exception
Throws:
Exception

encrypt

public byte[] encrypt(byte[] input)
               throws Exception
Throws:
Exception

decrypt

public byte[] decrypt(byte[] input)
               throws Exception
Throws:
Exception