|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectj_waste.network.Packet
j_waste.network.InitialPacket1
This class represents the InitialPacket1 used during authentication.
| Field Summary |
| Fields inherited from class j_waste.network.Packet |
packet |
| Constructor Summary | |
InitialPacket1(byte[] input)
Constructs a new InitialPacket1 from the input array. |
|
InitialPacket1(byte[] sRand,
byte[] sPubKeyHash)
Constructs a new InitialPacket1. |
|
| Method Summary | |
void |
finalizePacket()
Finalizes the packet. |
static int |
getSize()
Returns the size of this packet. |
byte[] |
getSPubKeyHash()
Returns the public key hash from this packet. |
byte[] |
getSRand()
Returns the sRand of this packet. |
byte[] |
toByteArray()
Returns a byte array representation of the packet. |
| Methods inherited from class j_waste.network.Packet |
padCD, reverseBytes, reverseInt, reverseShort, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public InitialPacket1(byte[] sRand,
byte[] sPubKeyHash)
sRand - 16 random bytes used during authentication.sPubKeyHash - The hash of this nodes public RSA key.public InitialPacket1(byte[] input)
input - The array from which the packet will constructed.| Method Detail |
public byte[] getSRand()
public byte[] getSPubKeyHash()
public static int getSize()
public byte[] toByteArray()
toByteArray in class Packetpublic void finalizePacket()
finalizePacket in class Packet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||