DataStructureDestination, RouterIdentitypublic 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, toByteArrayprotected 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
DataStructurein - 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
DataStructureout - 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.Objectpublic int hashCode()
hashCode クラス内 java.lang.Objectpublic java.lang.String toString()
toString クラス内 java.lang.Objectpublic Hash calculateHash()
calculateHash インタフェース内 DataStructurecalculateHash クラス内 DataStructureImpljava.lang.IllegalStateExceptionpublic Hash getHash()
java.lang.IllegalStateException