public class InitPacket extends java.lang.Object implements IPacket
Modifier and Type | Field and Description |
---|---|
static int |
CHANNEL_KEY_ONION_SIZE |
static int |
PAYLOAD_SIZE |
TYPE_BYTE_SIZE, TYPE_DATA, TYPE_INIT, TYPE_INIT_RESPONSE
Constructor and Description |
---|
InitPacket(int channelID,
byte[] messageID,
PublicKey publicKey,
byte[] channelKeyOnion,
byte[] payloadOnion) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getChannelID() |
byte[] |
getData() |
byte[] |
getMessageID() |
byte |
getPacketType() |
byte[] |
getPayloadOnion() |
public static final int CHANNEL_KEY_ONION_SIZE
public static final int PAYLOAD_SIZE
public InitPacket(int channelID, byte[] messageID, PublicKey publicKey, byte[] channelKeyOnion, byte[] payloadOnion)
public byte[] getPayloadOnion()
public byte getPacketType()
getPacketType
in interface IPacket
public byte[] getMessageID()
getMessageID
in interface IPacket
public int getChannelID()
getChannelID
in interface IPacket
public byte[] getData() throws java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2023. All rights reserved.