public final class Ssh2NewKeysPacket extends AbstractPacket
Modifier and Type | Class and Description |
---|---|
static class |
Ssh2NewKeysPacket.Ssh2NewKeysHeader |
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
Packet.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, toString
public 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()
AbstractPacket
getHeader
in interface Packet
getHeader
in class AbstractPacket
public Packet.Builder getBuilder()
Packet
getBuilder
in interface Packet
getBuilder
in class AbstractPacket
public boolean equals(Object obj)
AbstractPacket
equals
in class AbstractPacket
protected int calcHashCode()
AbstractPacket
hashCode()
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 AbstractPacket
Copyright © 2011–2016 Pcap4J.org. All rights reserved.