DataStructure
Destination
, RouterIdentity
public class KeysAndCert extends DataStructureImpl
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected Certificate |
_certificate |
|
protected byte[] |
_padding |
|
protected PublicKey |
_publicKey |
|
protected SigningPublicKey |
_signingKey |
コンストラクタ | 説明 |
---|---|
KeysAndCert() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
Hash |
calculateHash() |
Throws IllegalStateException if keys and cert are not initialized,
as of 0.9.12.
|
boolean |
equals(java.lang.Object object) |
|
Certificate |
getCertificate() |
|
Hash |
getHash() |
Throws IllegalStateException if keys and cert are not initialized,
as of 0.9.12.
|
byte[] |
getPadding() |
|
PublicKey |
getPublicKey() |
|
SigningPublicKey |
getSigningPublicKey() |
|
SigType |
getSigType() |
|
int |
hashCode() |
the signing key has enough randomness in it to use it by itself for speed
|
void |
readBytes(java.io.InputStream in) |
Load up the current object with data from the given stream.
|
void |
setCertificate(Certificate cert) |
|
void |
setPadding(byte[] padding) |
|
void |
setPublicKey(PublicKey key) |
|
void |
setSigningPublicKey(SigningPublicKey key) |
|
java.lang.String |
toString() |
|
void |
writeBytes(java.io.OutputStream out) |
Write out the data structure to the stream, using the format defined in the
I2P data structure specification.
|
fromBase64, fromByteArray, read, toBase64, toByteArray
protected PublicKey _publicKey
protected SigningPublicKey _signingKey
protected Certificate _certificate
protected byte[] _padding
public Certificate getCertificate()
public void setCertificate(Certificate cert)
java.lang.IllegalStateException
- if was already setpublic SigType getSigType()
public PublicKey getPublicKey()
public void setPublicKey(PublicKey key)
java.lang.IllegalStateException
- if was already setpublic SigningPublicKey getSigningPublicKey()
public void setSigningPublicKey(SigningPublicKey key)
java.lang.IllegalStateException
- if was already setpublic byte[] getPadding()
public void setPadding(byte[] padding)
java.lang.IllegalStateException
- if was already setpublic void readBytes(java.io.InputStream in) throws DataFormatException, java.io.IOException
DataStructure
in
- stream to read fromjava.lang.IllegalStateException
- if data already setDataFormatException
- if the data is improperly formattedjava.io.IOException
- if there was a problem reading the streampublic void writeBytes(java.io.OutputStream out) throws DataFormatException, java.io.IOException
DataStructure
out
- stream to write toDataFormatException
- if the data was incomplete or not yet ready to be writtenjava.io.IOException
- if there was a problem writing to the streampublic boolean equals(java.lang.Object object)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public java.lang.String toString()
toString
クラス内 java.lang.Object
public Hash calculateHash()
calculateHash
インタフェース内 DataStructure
calculateHash
クラス内 DataStructureImpl
java.lang.IllegalStateException
public Hash getHash()
java.lang.IllegalStateException