public class SymmetricCrypto extends Object
Constructor and Description |
---|
SymmetricCrypto(SymmetricCryptoMeta meta)
Construct a new Symetric SymmetricCrypto trans
|
SymmetricCrypto(SymmetricCryptoMeta meta,
String xform)
Construct a new Symetric SymmetricCrypto trans
|
Modifier and Type | Method and 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) |
public SymmetricCrypto(SymmetricCryptoMeta meta) throws CryptoException
inf
- The Database Connection Info to construct the connection with.CryptoException
public SymmetricCrypto(SymmetricCryptoMeta meta, String xform) throws CryptoException
inf
- The Database Connection Info to construct the connection with.CryptoException
public void setEncryptMode() throws CryptoException
CryptoException
public void setDecryptMode() throws CryptoException
CryptoException
public void setSecretKey(String keyString) throws CryptoKeyException
CryptoKeyException
public void setSecretKey(byte[] keyBytes) throws CryptoKeyException
CryptoKeyException
public void setSecretKeyFromFile(String filename) throws CryptoKeyException
CryptoKeyException
public byte[] encrDecryptData(byte[] inpBytes) throws CryptoException
CryptoException
public byte[] generateKey(int keySize) throws CryptoKeyException
CryptoKeyException
public String generateKeyAsHex(int keySize) throws CryptoKeyException
CryptoKeyException
public String getCipherProviderName()
public void close()
Copyright © 2018 Hitachi Vantara. All rights reserved.