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.CryptoExceptionpublic SymmetricCrypto(SymmetricCryptoMeta meta, String xform) throws CryptoException
inf - The Database Connection Info to construct the connection with.CryptoExceptionpublic void setEncryptMode()
throws CryptoException
CryptoExceptionpublic void setDecryptMode()
throws CryptoException
CryptoExceptionpublic void setSecretKey(String keyString) throws CryptoKeyException
CryptoKeyExceptionpublic void setSecretKey(byte[] keyBytes)
throws CryptoKeyException
CryptoKeyExceptionpublic void setSecretKeyFromFile(String filename) throws CryptoKeyException
CryptoKeyExceptionpublic byte[] encrDecryptData(byte[] inpBytes)
throws CryptoException
CryptoExceptionpublic byte[] generateKey(int keySize)
throws CryptoKeyException
CryptoKeyExceptionpublic String generateKeyAsHex(int keySize) throws CryptoKeyException
CryptoKeyExceptionpublic String getCipherProviderName()
public void close()
Copyright © 2018 Hitachi Vantara. All rights reserved.