Package org.teiid.core.crypto
Class NullCryptor
- java.lang.Object
-
- org.teiid.core.crypto.NullCryptor
-
-
Constructor Summary
Constructors Constructor Description NullCryptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] ciphertext)Decrypt the ciphertext in byte array format to yield the original cleartext.Stringdecrypt(String ciphertext)byte[]encrypt(byte[] cleartext)Encrypt the cleartext in byte array format.Stringencrypt(String cleartext)ObjectsealObject(Object object)ObjectunsealObject(Object object)
-
-
-
Method Detail
-
encrypt
public byte[] encrypt(byte[] cleartext) throws CryptoExceptionDescription copied from interface:CryptorEncrypt the cleartext in byte array format.- Specified by:
encryptin interfaceCryptor- Parameters:
cleartext- The text to be encrypted, in byte form- Returns:
- The encrypted ciphertext, in byte form
- Throws:
CryptoException
-
encrypt
public String encrypt(String cleartext) throws CryptoException
- Throws:
CryptoException
-
sealObject
public Object sealObject(Object object) throws CryptoException
- Specified by:
sealObjectin interfaceCryptor- Throws:
CryptoException
-
decrypt
public byte[] decrypt(byte[] ciphertext) throws CryptoExceptionDescription copied from interface:CryptorDecrypt the ciphertext in byte array format to yield the original cleartext.- Specified by:
decryptin interfaceCryptor- Parameters:
ciphertext- The text to be encrypted, in byte form- Returns:
- The decrypted cleartext, in byte form
- Throws:
CryptoException
-
decrypt
public String decrypt(String ciphertext) throws CryptoException
- Throws:
CryptoException
-
unsealObject
public Object unsealObject(Object object) throws CryptoException
- Specified by:
unsealObjectin interfaceCryptor- Throws:
CryptoException
-
-