org.pentaho.di.trans.steps.symmetriccrypto.symmetricalgorithm
Class SymmetricCrypto
java.lang.Object
  
org.pentaho.di.trans.steps.symmetriccrypto.symmetricalgorithm.SymmetricCrypto
public class SymmetricCrypto
- extends Object
 
Symmetric algorithm
- Since:
 
  - 01-4-2011
 
- Author:
 
  - Samatar
 
 
 
 
SymmetricCrypto
public SymmetricCrypto(SymmetricCryptoMeta meta)
                throws CryptoException
- Construct a new Symetric SymmetricCrypto trans
- Parameters:
 inf - The Database Connection Info to construct the connection with.
- Throws:
 CryptoException
 
SymmetricCrypto
public SymmetricCrypto(SymmetricCryptoMeta meta,
                       String xform)
                throws CryptoException
- Construct a new Symetric SymmetricCrypto trans
- Parameters:
 inf - The Database Connection Info to construct the connection with.
- Throws:
 CryptoException
 
setEncryptMode
public void setEncryptMode()
                    throws CryptoException
- Throws:
 CryptoException
 
setDecryptMode
public void setDecryptMode()
                    throws CryptoException
- Throws:
 CryptoException
 
setSecretKey
public void setSecretKey(String keyString)
                  throws CryptoKeyException
- Throws:
 CryptoKeyException
 
setSecretKey
public void setSecretKey(byte[] keyBytes)
                  throws CryptoKeyException
- Throws:
 CryptoKeyException
 
setSecretKeyFromFile
public void setSecretKeyFromFile(String filename)
                          throws CryptoKeyException
- Throws:
 CryptoKeyException
 
encrDecryptData
public byte[] encrDecryptData(byte[] inpBytes)
                       throws CryptoException
- Throws:
 CryptoException
 
generateKey
public byte[] generateKey(int keySize)
                   throws CryptoKeyException
- Throws:
 CryptoKeyException
 
generateKeyAsHex
public String generateKeyAsHex(int keySize)
                        throws CryptoKeyException
- Throws:
 CryptoKeyException
 
getCipherProviderName
public String getCipherProviderName()
 
close
public void close()