DataStructureVerifiedDestinationpublic class Destination extends KeysAndCert
_certificate, _padding, _publicKey, _signingKey| コンストラクタ | 説明 |
|---|---|
Destination() |
|
Destination(java.lang.String s) |
alternative constructor which takes a base64 string representation
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static void |
clearCache() |
Clear the cache.
|
static Destination |
create(java.io.InputStream in) |
Pull from cache or return new
|
boolean |
equals(java.lang.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() |
|
java.lang.String |
toBase32() |
For convenience.
|
java.lang.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(java.lang.String s)
throws DataFormatException
s - a Base64 representation of the destination, as (eg) is used in hosts.txtDataFormatExceptionpublic static Destination create(java.io.InputStream in) throws DataFormatException, java.io.IOException
DataFormatExceptionjava.io.IOExceptionpublic int writeBytes(byte[] target,
int offset)
public int readBytes(byte[] source,
int offset)
throws DataFormatException
java.lang.IllegalStateException - if data already setDataFormatExceptionpublic int size()
public java.lang.String toBase64()
toBase64 インタフェース内 DataStructuretoBase64 クラス内 DataStructureImplpublic java.lang.String toBase32()
public static void clearCache()
public boolean equals(java.lang.Object o)
equals クラス内 KeysAndCertpublic int hashCode()
KeysAndCerthashCode クラス内 KeysAndCert