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
-
-
Constructor Summary
Constructors Constructor Description SymmetricCrypto(SymmetricCryptoMeta meta)
Construct a new Symetric SymmetricCrypto transSymmetricCrypto(SymmetricCryptoMeta meta, String xform)
Construct a new Symetric SymmetricCrypto trans
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
byte[]
encrDecryptData(byte[] inpBytes)
byte[]
generateKey(int keySize)
String
generateKeyAsHex(int keySize)
String
getCipherProviderName()
void
setDecryptMode()
void
setEncryptMode()
void
setSecretKey(byte[] keyBytes)
void
setSecretKey(String keyString)
void
setSecretKeyFromFile(String filename)
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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()
-
-