public static Packet toPacket(byte[] octets){
  int packetLen=octets[3] & 0xFF;
  packetLen|=((octets[2] << 8) & 0xFF00);
  return toPacket(ByteBuffer.wrap(octets,0,packetLen));
}

public static Packet toPacket ( byte [ ] octets ) { int packetLen = octets [ 3 ] & 0xFF ; packetLen |= ( ( octets [ 2 ] << 8 ) & 0xFF00 ) ; return toPacket ( ByteBuffer . wrap ( octets , 0 , packetLen ) ) ; }
unmarshalls from an array the octet format of rfc 2865 and creates the corresponding package and instantiates its embedded authenticator and attributes .
