public class BlindingInfoMessage extends I2CPMessageImpl
BlindData
,
Blinding
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
MESSAGE_TYPE |
static int |
TYPE_DEST |
static int |
TYPE_HASH |
static int |
TYPE_HOST |
static int |
TYPE_KEY |
Constructor and Description |
---|
BlindingInfoMessage() |
BlindingInfoMessage(BlindData bd,
SessionId id)
This is the constructor used by I2CP client-side.
|
BlindingInfoMessage(Destination d,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret) |
BlindingInfoMessage(Hash h,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret)
Deprecated.
unimplemented on router side
|
BlindingInfoMessage(SigningPublicKey s,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret) |
BlindingInfoMessage(String h,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret)
Deprecated.
unimplemented on router side
|
Modifier and Type | Method and Description |
---|---|
protected void |
doReadMessage(InputStream in,
int size)
Read in the payload part of the message (after the initial 4 byte size and 1
byte type)
|
protected byte[] |
doWriteMessage()
Write out the payload part of the message (not including the 4 byte size and
1 byte type)
|
int |
getAuthType() |
BlindData |
getBlindData() |
String |
getDestination() |
int |
getEndpointType() |
Hash |
getHash() |
String |
getHostname() |
PrivateKey |
getPrivateKey() |
String |
getSecret() |
SessionId |
getSessionId() |
SigningPublicKey |
getSigningPublicKey() |
long |
getTimeout() |
int |
getType()
Return the unique identifier for this type of message, as specified in the
network specification document under #ClientAccessLayerMessages
|
SessionId |
sessionId()
Return the SessionId for this message.
|
String |
toString() |
readBytes, readMessage, readMessage, writeBytes, writeMessage
calculateHash, fromBase64, fromByteArray, read, toBase64, toByteArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calculateHash, fromBase64, fromByteArray, toBase64, toByteArray
public static final int MESSAGE_TYPE
public static final int TYPE_HASH
public static final int TYPE_HOST
public static final int TYPE_DEST
public static final int TYPE_KEY
public BlindingInfoMessage()
public BlindingInfoMessage(BlindData bd, SessionId id)
@Deprecated public BlindingInfoMessage(Hash h, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret)
authType
- 0 (none), 1 (DH), 3 (PSK)expiration
- ms from now or 0 for foreverprivKey
- null for auth none, non-null for DH/PSKsecret
- may be null, 255 UTF-8 bytes max@Deprecated public BlindingInfoMessage(String h, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret)
h
- hostnameauthType
- 0 (none), 1 (DH), 3 (PSK)expiration
- ms from now or 0 for foreverprivKey
- null for auth none, non-null for DH/PSKsecret
- may be null, 255 UTF-8 bytes maxpublic BlindingInfoMessage(Destination d, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret)
authType
- 0 (none), 1 (DH), 3 (PSK)expiration
- ms from now or 0 for foreverprivKey
- null for auth none, non-null for DH/PSKsecret
- may be null, 255 UTF-8 bytes maxpublic BlindingInfoMessage(SigningPublicKey s, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret)
authType
- 0 (none), 1 (DH), 3 (PSK)expiration
- ms from now or 0 for foreverprivKey
- null for auth none, non-null for DH/PSKsecret
- may be null, 255 UTF-8 bytes maxpublic SessionId getSessionId()
public SessionId sessionId()
sessionId
in interface I2CPMessage
sessionId
in class I2CPMessageImpl
public long getTimeout()
public int getAuthType()
public int getEndpointType()
public Hash getHash()
public String getHostname()
public String getDestination()
public SigningPublicKey getSigningPublicKey()
public PrivateKey getPrivateKey()
public String getSecret()
public BlindData getBlindData()
protected void doReadMessage(InputStream in, int size) throws I2CPMessageException, IOException
I2CPMessageImpl
doReadMessage
in class I2CPMessageImpl
in
- InputStreamsize
- payload sizeI2CPMessageException
IOException
protected byte[] doWriteMessage() throws I2CPMessageException, IOException
I2CPMessageImpl
doWriteMessage
in class I2CPMessageImpl
I2CPMessageException
IOException
public int getType()
I2CPMessage