|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jason.client.Appender | +--jason.client.CipherAppender
Title: Javacards As Secure Object Store
Description: CipherAppender adds security to the normal Appender
Copyright: Copyright (c) 2002
Company: University of Twente
Field Summary | |
protected MyCipher |
cipher
MyCipher is used only to simulate. |
Fields inherited from class jason.client.Appender |
buffer, storeLengths |
Constructor Summary | |
CipherAppender(MyCipher cipher)
|
|
CipherAppender(MyCipher cipher,
boolean storeLengths)
|
Method Summary | |
protected void |
appendIntern(byte[] b,
int offset,
int length)
Encrypts the specified part of the byte array and appends it to the internal buffer. |
byte[] |
getBuffer()
Encrypts the last pending bytes and returns the cipher text. |
Methods inherited from class jason.client.Appender |
append, append, append, append, append, append, appendIntern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MyCipher cipher
Cipher
.
Constructor Detail |
public CipherAppender(MyCipher cipher)
cipher
- The cipher to be used. It should already been initialized.public CipherAppender(MyCipher cipher, boolean storeLengths)
cipher
- The cipher to be used. It should already been initialized.storeLengths
- Indicate whether the length of an array should be stored as wellMethod Detail |
protected void appendIntern(byte[] b, int offset, int length)
appendIntern
in class Appender
b
- Data to be appendedoffset
- Offset within b
length
- Length of the bytes to be copiedpublic byte[] getBuffer()
getBuffer
no more bytes should be added to it.
getBuffer
in class Appender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |