public class Destination extends KeysAndCert
Destination represents the fundamental addressing and identity concept in I2P:
Key Components:
Address Formats:
Historical Changes:
Usage:
Security Considerations:
Performance Features:
Immutability:
IllegalStateExceptionMigration Notes:
_certificate, _paddingBlocks, _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 |
size() |
String |
toBase32()
For convenience.
|
String |
toBase64()
Cache it.
|
int |
writeBytes(byte[] target,
int offset)
Deprecated, used only by Packet.java in streaming.
|
calculateHash, combinePadding, getCertificate, getEncType, getHash, getPadding, getPublicKey, getSigningPublicKey, getSigType, isCompressible, readBytes, setCertificate, setPadding, setPublicKey, setSigningPublicKey, toString, writeBytes, writePaddingBytesfromBase64, fromByteArray, read, toByteArraypublic Destination()
public Destination(String s) throws DataFormatException
s - a Base64 representation of the destination, as (eg) is used in hosts.txtDataFormatExceptionpublic static void clearCache()
public static Destination create(InputStream in) throws DataFormatException, IOException
DataFormatExceptionIOExceptionpublic boolean equals(Object o)
equals in class KeysAndCertpublic int hashCode()
KeysAndCerthashCode in class KeysAndCertpublic int size()
public String toBase32()
public String toBase64()
toBase64 in interface DataStructuretoBase64 in class DataStructureImplpublic int writeBytes(byte[] target,
int offset)