public class Destination extends KeysAndCert
_certificate, _padding, _publicKey, _signingKey
Constructor and Description |
---|
Destination() |
Destination(String s)
alternative constructor which takes a base64 string representation
|
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
Clear the cache.
|
static Destination |
create(InputStream in)
Pull from cache or return new
|
boolean |
equals(Object o) |
int |
hashCode()
the signing key has enough randomness in it to use it by itself for speed
|
int |
readBytes(byte[] source,
int offset)
deprecated was used only by Packet.java in streaming, now unused
Warning - used by i2p-bote.
|
int |
size() |
String |
toBase32()
For convenience.
|
String |
toBase64()
Cache it.
|
int |
writeBytes(byte[] target,
int offset)
Deprecated, used only by Packet.java in streaming.
|
calculateHash, getCertificate, getHash, getPadding, getPublicKey, getSigningPublicKey, getSigType, readBytes, setCertificate, setPadding, setPublicKey, setSigningPublicKey, toString, writeBytes
fromBase64, fromByteArray, read, toByteArray
public Destination()
public Destination(String s) throws DataFormatException
s
- a Base64 representation of the destination, as (eg) is used in hosts.txtDataFormatException
public static Destination create(InputStream in) throws DataFormatException, IOException
DataFormatException
IOException
public int writeBytes(byte[] target, int offset)
public int readBytes(byte[] source, int offset) throws DataFormatException
IllegalStateException
- if data already setDataFormatException
public int size()
public String toBase64()
toBase64
in interface DataStructure
toBase64
in class DataStructureImpl
public String toBase32()
public static void clearCache()
public boolean equals(Object o)
equals
in class KeysAndCert
public int hashCode()
KeysAndCert
hashCode
in class KeysAndCert