public class GarlicClove extends DataStructureImpl
| Constructor and Description |
|---|
GarlicClove(I2PAppContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
estimateSize() |
Certificate |
getCertificate() |
long |
getCloveId() |
I2NPMessage |
getData() |
long |
getExpiration() |
DeliveryInstructions |
getInstructions() |
int |
getSizeRatchet() |
int |
hashCode() |
int |
readBytes(byte[] source,
int offset) |
void |
readBytesRatchet(byte[] source,
int offset,
int len)
Short format for ECIES-Ratchet, saves 22 bytes.
|
void |
setCertificate(Certificate cert) |
void |
setCloveId(long id) |
void |
setData(I2NPMessage msg) |
void |
setExpiration(long exp) |
void |
setInstructions(DeliveryInstructions instr) |
byte[] |
toByteArray()
Convert the structure to a byte array.
|
String |
toString() |
int |
writeBytesRatchet(byte[] tgt,
int offset)
Short format for ECIES-Ratchet, saves 22 bytes.
|
calculateHash, fromBase64, fromByteArray, read, toBase64clone, finalize, getClass, notify, notifyAll, wait, wait, waitreadBytes, writeBytespublic GarlicClove(I2PAppContext context)
public int estimateSize()
public Certificate getCertificate()
public long getCloveId()
public I2NPMessage getData()
public long getExpiration()
public DeliveryInstructions getInstructions()
public int getSizeRatchet()
public int readBytes(byte[] source,
int offset)
throws DataFormatException
DataFormatExceptionpublic void readBytesRatchet(byte[] source,
int offset,
int len)
throws DataFormatException
DataFormatExceptionpublic void setCertificate(Certificate cert)
public void setCloveId(long id)
public void setData(I2NPMessage msg)
public void setExpiration(long exp)
public void setInstructions(DeliveryInstructions instr)
public byte[] toByteArray()
DataStructuretoByteArray in interface DataStructuretoByteArray in class DataStructureImplpublic int writeBytesRatchet(byte[] tgt,
int offset)