com.metamatrix.common.util.crypto
Class NullCryptor

java.lang.Object
  extended by com.metamatrix.common.util.crypto.NullCryptor
All Implemented Interfaces:
Cryptor, Decryptor, Encryptor, java.io.Serializable

public class NullCryptor
extends java.lang.Object
implements Cryptor, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
NullCryptor()
           
 
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.
 byte[] encrypt(byte[] cleartext)
          Encrypt the cleartext in byte array format.
 java.lang.String encrypt(java.lang.String cleartext)
          Encrypt the cleartext
 java.io.Serializable sealObject(java.io.Serializable object)
           
 java.io.Serializable unsealObject(java.io.Serializable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCryptor

public NullCryptor()
Method Detail

encrypt

public byte[] encrypt(byte[] cleartext)
               throws CryptoException
Description copied from interface: Encryptor
Encrypt the cleartext in byte array format.

Specified by:
encrypt in interface Encryptor
Parameters:
cleartext - The text to be encrypted, in byte form
Throws:
CryptoException

encrypt

public java.lang.String encrypt(java.lang.String cleartext)
                         throws CryptoException
Description copied from interface: Encryptor
Encrypt the cleartext

Specified by:
encrypt in interface Encryptor
Parameters:
cleartext - The text to be encrypted
Throws:
CryptoException

sealObject

public java.io.Serializable sealObject(java.io.Serializable object)
                                throws CryptoException
Specified by:
sealObject in interface Encryptor
Throws:
CryptoException

decrypt

public byte[] decrypt(byte[] ciphertext)
               throws CryptoException
Description copied from interface: Decryptor
Decrypt the ciphertext in byte array format to yield the original cleartext.

Specified by:
decrypt in interface Decryptor
Parameters:
ciphertext - The text to be encrypted, in byte form
Throws:
CryptoException

decrypt

public java.lang.String decrypt(java.lang.String ciphertext)
                         throws CryptoException
Description copied from interface: Decryptor
Decrypt the ciphertext to yield the original cleartext.

Specified by:
decrypt in interface Decryptor
Parameters:
ciphertext - The text to be encrypted
Throws:
CryptoException

unsealObject

public java.io.Serializable unsealObject(java.io.Serializable object)
                                  throws CryptoException
Specified by:
unsealObject in interface Decryptor
Throws:
CryptoException


Copyright © 2009. All Rights Reserved.