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