j_waste.network
Class InitialPacket2

java.lang.Object
  extended byj_waste.network.Packet
      extended byj_waste.network.InitialPacket2

public class InitialPacket2
extends Packet

This class represents the InitialPacket2 used during authentication.

Version:
0.2
Author:
Fredrik Hultin (frehul@users.sourceforge.net)

Field Summary
 
Fields inherited from class j_waste.network.Packet
packet
 
Constructor Summary
InitialPacket2(byte[] sPubCrypted)
          Constructs a new InitialPacket2.
 
Method Summary
 void finalizePacket()
          Finalizes the packet.
static int getSize()
           
 byte[] getSPubCrypted()
          Returns the sPubCrypted 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

InitialPacket2

public InitialPacket2(byte[] sPubCrypted)
Constructs a new InitialPacket2.

Parameters:
sPubCrypted - The sPubCrypted of this packet.
Method Detail

getSPubCrypted

public byte[] getSPubCrypted()
Returns the sPubCrypted of this packet.

Returns:
the sPubCrypted of this packet.

getSize

public static int getSize()

toByteArray

public byte[] toByteArray()
Returns a byte array representation of the packet.

Specified by:
toByteArray in class Packet
Returns:
a byte array representation of the packet.

finalizePacket

public void finalizePacket()
Finalizes the packet.

Specified by:
finalizePacket in class Packet