|
|||||||||||
| 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.InitialPacket2PSK
This class represents the InitialPacket2PSK used during authentication. This packet is used when the nodes authenticate using a pre-shared key.
| Field Summary |
| Fields inherited from class j_waste.network.Packet |
packet |
| Constructor Summary | |
InitialPacket2PSK(byte[] sPubCrypted,
byte[] sRand)
Constructs a new InitialPacket2SPK. |
|
| Method Summary | |
void |
finalizePacket()
Finalizes this packet. |
byte[] |
getSPubCrypted()
Returns the sPubCrypted of 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 InitialPacket2PSK(byte[] sPubCrypted,
byte[] sRand)
sPubCrypted - The sPubCrypted of this packet. 512 bytes.sRand - 16 random bytes used during authentication.| Method Detail |
public byte[] getSPubCrypted()
public byte[] getSRand()
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 | ||||||||||