Serializable, DataStructureVerifiedDestinationpublic class Destination extends KeysAndCert
_certificate, _padding, _publicKey, _signingKey| Constructor | Description |
|---|---|
Destination() |
|
Destination(String s) |
alternative constructor which takes a base64 string representation
|
| Modifier and Type | Method | 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.
|
fromBase64, fromByteArray, read, toByteArraycalculateHash, getCertificate, getHash, getPadding, getPublicKey, getSigningPublicKey, getSigType, readBytes, setCertificate, setPadding, setPublicKey, setSigningPublicKey, toString, writeBytespublic Destination()
public Destination(String s) throws DataFormatException
s - a Base64 representation of the destination, as (eg) is used in hosts.txtDataFormatExceptionpublic static Destination create(InputStream in) throws DataFormatException, IOException
DataFormatExceptionIOExceptionpublic int writeBytes(byte[] target,
int offset)
public int readBytes(byte[] source,
int offset)
throws DataFormatException
IllegalStateException - if data already setDataFormatExceptionpublic int size()
public String toBase64()
toBase64 in interface DataStructuretoBase64 in class DataStructureImplpublic String toBase32()
public static void clearCache()
public boolean equals(Object o)
equals in class KeysAndCertpublic int hashCode()
KeysAndCerthashCode in class KeysAndCert