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() |
Date |
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(Certificate cert) |
void |
setCloveId(long id) |
void |
setData(I2NPMessage msg) |
void |
setExpiration(Date 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.
|
calculateHash, fromBase64, fromByteArray, read, toBase64
public GarlicClove(I2PAppContext context)
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 Date getExpiration()
public void setExpiration(Date exp)
public Certificate getCertificate()
public void setCertificate(Certificate cert)
@Deprecated public void readBytes(InputStream in)
DataStructure
in
- stream to read fromUnsupportedOperationException
- alwayspublic int readBytes(byte[] source, int offset) throws DataFormatException
DataFormatException
public void readBytesRatchet(byte[] source, int offset, int len) throws DataFormatException
DataFormatException
@Deprecated public void writeBytes(OutputStream out)
DataStructure
out
- stream to write toUnsupportedOperationException
- alwayspublic byte[] toByteArray()
toByteArray
in interface DataStructure
toByteArray
in class DataStructureImpl
public int writeBytesRatchet(byte[] tgt, int offset)
public int getSizeRatchet()
public int estimateSize()