|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.database.Encryptor
| Constructor Summary | |
Encryptor()
Deprecated. |
|
Encryptor(String key)
Deprecated. |
|
| Method Summary | |
void |
closeProcess()
Deprecated. This aborts any on-going processing and frees resources associated with the processor. |
int |
getBlockSize()
Deprecated. This returns the size of a block to be processed - any data blocks presented for processing must be multiples of this size. |
int |
getMaxBlockSize()
Deprecated. This returns the largest block that can be processed. |
static ByteArray |
makeEncryptorTest(DataProcessor dp,
int minSize,
ByteArray out)
Deprecated. |
ByteArray |
processBlock(byte[] data,
int start,
int length,
boolean lastInBlock,
ByteArray dest)
Deprecated. This processes a block of data and places the output in the provided ByteArray. |
void |
setKey(Object key)
Deprecated. |
static boolean |
testDecryptor(DataProcessor dp,
byte[] src,
int offset,
int length)
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Constructor Detail |
public Encryptor(String key)
public Encryptor()
| Method Detail |
public int getBlockSize()
DataProcessor
getBlockSize in interface DataProcessorpublic int getMaxBlockSize()
DataProcessor
getMaxBlockSize in interface DataProcessorpublic void closeProcess()
DataProcessor
closeProcess in interface DataProcessorpublic void setKey(Object key)
public ByteArray processBlock(byte[] data,
int start,
int length,
boolean lastInBlock,
ByteArray dest)
throws IOException
DataProcessorisLastBlock should be set true if this is the last set of data to be processed. If you want to end a processing run, but have no more data to provide - you can set length to be zero (you can then also set inputData to be null) and set isLastBlock true.
If isLastBlock is true the DataProcessor should accept any input data, complete processing and output ALL of any remaining processed data. It should then reset itself so that the next call of processBlock is considered to be the start of a new sequence of data.
If there is an error processing the data, an IOException should be thrown.
processBlock in interface DataProcessorIOException
public static ByteArray makeEncryptorTest(DataProcessor dp,
int minSize,
ByteArray out)
throws IOException
IOException
public static boolean testDecryptor(DataProcessor dp,
byte[] src,
int offset,
int length)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||