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.String
decrypt(String ciphertext)
byte[]
encrypt(byte[] cleartext)
Encrypt the cleartext in byte array format.String
encrypt(String cleartext)
Object
sealObject(Object object)
Object
unsealObject(Object object)
-
-
-
Method Detail
-
encrypt
public byte[] encrypt(byte[] cleartext) throws CryptoException
Description copied from interface:Cryptor
Encrypt the cleartext in byte array format.- Specified by:
encrypt
in 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:
sealObject
in interfaceCryptor
- Throws:
CryptoException
-
decrypt
public byte[] decrypt(byte[] ciphertext) throws CryptoException
Description copied from interface:Cryptor
Decrypt the ciphertext in byte array format to yield the original cleartext.- Specified by:
decrypt
in 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:
unsealObject
in interfaceCryptor
- Throws:
CryptoException
-
-