DataStructure
VerifiedDestination
public 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, toByteArray
calculateHash, getCertificate, getHash, getPadding, getPublicKey, getSigningPublicKey, getSigType, readBytes, setCertificate, setPadding, setPublicKey, setSigningPublicKey, toString, writeBytes
public Destination()
public Destination(java.lang.String s) throws DataFormatException
s
- a Base64 representation of the destination, as (eg) is used in hosts.txtDataFormatException
public static Destination create(java.io.InputStream in) throws DataFormatException, java.io.IOException
DataFormatException
java.io.IOException
public int writeBytes(byte[] target, int offset)
public int readBytes(byte[] source, int offset) throws DataFormatException
java.lang.IllegalStateException
- if data already setDataFormatException
public int size()
public java.lang.String toBase64()
toBase64
インタフェース内 DataStructure
toBase64
クラス内 DataStructureImpl
public java.lang.String toBase32()
public static void clearCache()
public boolean equals(java.lang.Object o)
equals
クラス内 KeysAndCert
public int hashCode()
KeysAndCert
hashCode
クラス内 KeysAndCert