|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.security.AbstractStringEncryption
This class represents a StringEncryption Interface
| Field Summary | |
protected byte[] |
passKey
|
| Constructor Summary | |
AbstractStringEncryption()
Default Constructor |
|
| Method Summary | |
abstract byte[] |
decrypt(byte[] inputData)
Same as decryptString, but only deals in byte arrays. |
String |
decryptString(byte[] inputData)
Decode a string. |
void |
destroy()
Implemented by lower levels to destroy the cryptographic managers. |
abstract byte[] |
encrypt(byte[] inputData)
Same as encryptString, but only deals in byte arrays. |
byte[] |
encryptString(String inputData)
Encode a string. |
CryptoManager |
getCryptoManager()
|
void |
init()
|
void |
preparePassKey()
Basic implementation puts a hash of the config manager's key into the passKey variable. |
void |
setCryptoManager(CryptoManager cryptoManager)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] passKey
| Constructor Detail |
public AbstractStringEncryption()
ChainedException| Method Detail |
public void init()
throws ChainedException
ChainedExceptionpublic void destroy()
public abstract byte[] decrypt(byte[] inputData)
throws ChainedException
inputData - A byte aray of data to decrypt
ChainedException - If there's an error decrypting the data
public String decryptString(byte[] inputData)
throws IllegalStateException
inputData - A greater than zero length byte array. that was encoded
with the encryptString() routine.
IllegalStateException
public abstract byte[] encrypt(byte[] inputData)
throws ChainedException
inputData - A byte array to encrypt
ChainedException
public byte[] encryptString(String inputData)
throws IllegalStateException,
IllegalArgumentException,
ChainedException
inputData - a non-null string.
IllegalStateException
IllegalArgumentException
ChainedException
public void preparePassKey()
throws ChainedException
ChainedExceptionpublic void setCryptoManager(CryptoManager cryptoManager)
public CryptoManager getCryptoManager()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||