| java.lang.Object com.jcorporate.expresso.core.security.AbstractStringEncryption
All known Subclasses: com.jcorporate.expresso.core.security.strongencryption.StringEncryption, com.jcorporate.expresso.core.security.weakencryption.StringEncryption,
AbstractStringEncryption | abstract public class AbstractStringEncryption (Code) | | This class represents a StringEncryption Interface
author: Michael Rimov |
Method Summary | |
abstract public byte[] | decrypt(byte[] inputData) Same as decryptString, but only deals in byte arrays. | public String | decryptString(byte[] inputData) Decode a string. | public synchronized void | destroy() Implemented by lower levels to destroy the cryptographic managers. | abstract public byte[] | encrypt(byte[] inputData) Same as encryptString, but only deals in byte arrays. | public byte[] | encryptString(String inputData) Encode a string. | public CryptoManager | getCryptoManager() | protected byte[] | getPreparedPassKey() Retrieve the pass key prepped by the base class. | public synchronized void | init() | public void | preparePassKey() Basic implementation puts a hash of the config manager's key into
the passKey variable. | public void | setCryptoManager(CryptoManager cryptoManager) |
initialized | boolean initialized(Code) | | |
logCat | static Logger logCat(Code) | | |
AbstractStringEncryption | public AbstractStringEncryption()(Code) | | Default Constructor
|
decrypt | abstract public byte[] decrypt(byte[] inputData) throws ChainedException(Code) | | Same as decryptString, but only deals in byte arrays. This method must be
implemented by descendants of this class.
Parameters: inputData - A byte aray of data to decrypt A byte array of decrypted data throws: ChainedException - If there's an error decrypting the data |
decryptString | public String decryptString(byte[] inputData) throws IllegalStateException(Code) | | Decode a string. Derived classes determine what strength/type of
encoding is done.
Parameters: inputData - A greater than zero length byte array. that was encodedwith the encryptString() routine. the decrypted data in a String format. |
destroy | public synchronized void destroy()(Code) | | Implemented by lower levels to destroy the cryptographic managers.
|
encrypt | abstract public byte[] encrypt(byte[] inputData) throws ChainedException(Code) | | Same as encryptString, but only deals in byte arrays. This must be implemented
by the descendants of this class.
Parameters: inputData - A byte array to encrypt An encrypted byte array. |
getPreparedPassKey | protected byte[] getPreparedPassKey()(Code) | | Retrieve the pass key prepped by the base class.
byte[] |
preparePassKey | public void preparePassKey() throws ChainedException(Code) | | Basic implementation puts a hash of the config manager's key into
the passKey variable.
|
|
|