com.metamatrix.common.util.crypto
Interface Decryptor

All Known Subinterfaces:
Cryptor
All Known Implementing Classes:
BasicCryptor, NullCryptor, SymmetricCryptor

public interface Decryptor

Interface defining a utility that can perform decryption of ciphertext to yield the original cleartext.


Method Summary
 byte[] decrypt(byte[] ciphertext)
          Decrypt the ciphertext in byte array format to yield the original cleartext.
 java.lang.String decrypt(java.lang.String ciphertext)
          Decrypt the ciphertext to yield the original cleartext.
 java.io.Serializable unsealObject(java.io.Serializable object)
           
 

Method Detail

decrypt

byte[] decrypt(byte[] ciphertext)
               throws CryptoException
Decrypt the ciphertext in byte array format to yield the original cleartext.

Parameters:
ciphertext - The text to be encrypted, in byte form
The - decrypted cleartext, in byte form
Throws:
CryptoException

decrypt

java.lang.String decrypt(java.lang.String ciphertext)
                         throws CryptoException
Decrypt the ciphertext to yield the original cleartext.

Parameters:
ciphertext - The text to be encrypted
The - decrypted cleartext
Throws:
CryptoException

unsealObject

java.io.Serializable unsealObject(java.io.Serializable object)
                                  throws CryptoException
Throws:
CryptoException


Copyright © 2009. All Rights Reserved.