public class GarlicClove extends DataStructureImpl
| Constructor and Description |
|---|
GarlicClove(I2PAppContext context)GarlicClove. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj)equals. |
int | estimateSize()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)setCertificate. |
void | setCloveId(long id)setCloveId. |
void | setData(I2NPMessage msg)setData. |
void | setExpiration(long exp)setExpiration. |
void | setInstructions(DeliveryInstructions instr)setInstructions. |
byte[] | toByteArray()Convert the structure to a byte array. |
String | toString()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 DataFormatExceptionDataFormatExceptionpublic void readBytesRatchet(byte[] source,
int offset,
int len)
throws DataFormatExceptionDataFormatExceptionpublic 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)