public class GarlicClove
extends net.i2p.data.DataStructureImpl
| Constructor and Description |
|---|
GarlicClove(net.i2p.I2PAppContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
estimateSize() |
net.i2p.data.Certificate |
getCertificate() |
long |
getCloveId() |
I2NPMessage |
getData() |
long |
getExpiration() |
DeliveryInstructions |
getInstructions() |
int |
getSizeRatchet() |
int |
hashCode() |
int |
readBytes(byte[] source,
int offset) |
void |
readBytes(InputStream in)
Deprecated.
unused, use byte array method to avoid copying
|
void |
readBytesRatchet(byte[] source,
int offset,
int len)
Short format for ECIES-Ratchet, saves 22 bytes.
|
void |
setCertificate(net.i2p.data.Certificate cert) |
void |
setCloveId(long id) |
void |
setData(I2NPMessage msg) |
void |
setExpiration(long exp) |
void |
setInstructions(DeliveryInstructions instr) |
byte[] |
toByteArray() |
String |
toString() |
void |
writeBytes(OutputStream out)
Deprecated.
unused, use byte array method to avoid copying
|
int |
writeBytesRatchet(byte[] tgt,
int offset)
Short format for ECIES-Ratchet, saves 22 bytes.
|
public DeliveryInstructions getInstructions()
public void setInstructions(DeliveryInstructions instr)
public I2NPMessage getData()
public void setData(I2NPMessage msg)
public long getCloveId()
public void setCloveId(long id)
public long getExpiration()
public void setExpiration(long exp)
public net.i2p.data.Certificate getCertificate()
public void setCertificate(net.i2p.data.Certificate cert)
@Deprecated public void readBytes(InputStream in)
UnsupportedOperationException - alwayspublic int readBytes(byte[] source,
int offset)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic void readBytesRatchet(byte[] source,
int offset,
int len)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatException@Deprecated public void writeBytes(OutputStream out)
UnsupportedOperationException - alwayspublic byte[] toByteArray()
toByteArray in interface net.i2p.data.DataStructuretoByteArray in class net.i2p.data.DataStructureImplpublic int writeBytesRatchet(byte[] tgt,
int offset)
public int getSizeRatchet()
public int estimateSize()