com.metamatrix.common.util.crypto
Interface Encryptor

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

public interface Encryptor

Interface defining a utility that can perform encryption of cleartext.


Method Summary
 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)
           
 

Method Detail

encrypt

byte[] encrypt(byte[] cleartext)
               throws CryptoException
Encrypt the cleartext in byte array format.

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

encrypt

java.lang.String encrypt(java.lang.String cleartext)
                         throws CryptoException
Encrypt the cleartext

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

sealObject

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


Copyright © 2009. All Rights Reserved.