public final class Ssh2NewKeysPacket extends AbstractPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
Ssh2NewKeysPacket.Ssh2NewKeysHeader |
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderPacket.Builder, Packet.Header| Modifier and Type | Method and Description |
|---|---|
protected int |
calcHashCode()
This method calculates the value
hashCode() will return using
the header's hash code and the payload's hash code. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
Packet.Builder |
getBuilder()
Returns a new Builder object populated with this object's fields' values.
|
Ssh2NewKeysPacket.Ssh2NewKeysHeader |
getHeader()
Returns the Header object representing this packet's header.
|
static Ssh2NewKeysPacket |
getInstance() |
static Ssh2NewKeysPacket |
newPacket(byte[] rawData,
int offset,
int length)
A static factory method.
|
buildHexString, buildRawData, buildString, calcLength, contains, get, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toStringpublic static Ssh2NewKeysPacket getInstance()
public static Ssh2NewKeysPacket newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int),
which may throw exceptions undocumented here.rawData - rawDataoffset - offsetlength - lengthIllegalRawDataException - if parsing the raw data fails.public Ssh2NewKeysPacket.Ssh2NewKeysHeader getHeader()
AbstractPacketgetHeader in interface PacketgetHeader in class AbstractPacketpublic Packet.Builder getBuilder()
PacketgetBuilder in interface PacketgetBuilder in class AbstractPacketpublic boolean equals(Object obj)
AbstractPacketequals in class AbstractPacketprotected int calcHashCode()
AbstractPackethashCode() will return using
the header's hash code and the payload's hash code.
If you write this subclass which represents a packet with extra parts (e.g. a trailer),
you need to override this method.calcHashCode in class AbstractPacketCopyright © 2011–2016 Pcap4J.org. All rights reserved.