- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractHeader
-
- org.pcap4j.packet.Ssh2KexInitPacket.Ssh2KexInitHeader
-
- All Implemented Interfaces:
java.io.Serializable,Packet.Header
- Enclosing class:
- Ssh2KexInitPacket
public static final class Ssh2KexInitPacket.Ssh2KexInitHeader extends AbstractPacket.AbstractHeader
- Version:
- pcap4j 1.0.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Ssh2NameListcompressionAlgorithmsClientToServerprivate Ssh2NameListcompressionAlgorithmsServerToClientprivate byte[]cookieprivate Ssh2NameListencryptionAlgorithmsClientToServerprivate Ssh2NameListencryptionAlgorithmsServerToClientprivate Ssh2BooleanfirstKexPacketFollowsprivate Ssh2NameListkexAlgorithmsprivate Ssh2NameListlanguagesClientToServerprivate Ssh2NameListlanguagesServerToClientprivate Ssh2NameListmacAlgorithmsClientToServerprivate Ssh2NameListmacAlgorithmsServerToClientprivate Ssh2MessageNumbermessageNumberprivate intreservedprivate static longserialVersionUIDprivate Ssh2NameListserverHostKeyAlgorithms
-
Constructor Summary
Constructors Modifier Constructor Description privateSsh2KexInitHeader(byte[] rawData, int offset, int length)privateSsh2KexInitHeader(Ssh2KexInitPacket.Builder builder)
-
Method Summary
-
Methods inherited from class org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
messageNumber
private final Ssh2MessageNumber messageNumber
-
cookie
private final byte[] cookie
-
kexAlgorithms
private final Ssh2NameList kexAlgorithms
-
serverHostKeyAlgorithms
private final Ssh2NameList serverHostKeyAlgorithms
-
encryptionAlgorithmsClientToServer
private final Ssh2NameList encryptionAlgorithmsClientToServer
-
encryptionAlgorithmsServerToClient
private final Ssh2NameList encryptionAlgorithmsServerToClient
-
macAlgorithmsClientToServer
private final Ssh2NameList macAlgorithmsClientToServer
-
macAlgorithmsServerToClient
private final Ssh2NameList macAlgorithmsServerToClient
-
compressionAlgorithmsClientToServer
private final Ssh2NameList compressionAlgorithmsClientToServer
-
compressionAlgorithmsServerToClient
private final Ssh2NameList compressionAlgorithmsServerToClient
-
languagesClientToServer
private final Ssh2NameList languagesClientToServer
-
languagesServerToClient
private final Ssh2NameList languagesServerToClient
-
firstKexPacketFollows
private final Ssh2Boolean firstKexPacketFollows
-
reserved
private final int reserved
-
-
Constructor Detail
-
Ssh2KexInitHeader
private Ssh2KexInitHeader(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
Ssh2KexInitHeader
private Ssh2KexInitHeader(Ssh2KexInitPacket.Builder builder)
-
-
Method Detail
-
getMessageNumber
public Ssh2MessageNumber getMessageNumber()
- Returns:
- messageNumber
-
getCookie
public byte[] getCookie()
- Returns:
- cookie
-
getKexAlgorithms
public Ssh2NameList getKexAlgorithms()
- Returns:
- kexAlgorithms
-
getServerHostKeyAlgorithms
public Ssh2NameList getServerHostKeyAlgorithms()
- Returns:
- serverHostKeyAlgorithms
-
getEncryptionAlgorithmsClientToServer
public Ssh2NameList getEncryptionAlgorithmsClientToServer()
- Returns:
- encryptionAlgorithmsClientToServer
-
getEncryptionAlgorithmsServerToClient
public Ssh2NameList getEncryptionAlgorithmsServerToClient()
- Returns:
- encryptionAlgorithmsServerToClient
-
getMacAlgorithmsClientToServer
public Ssh2NameList getMacAlgorithmsClientToServer()
- Returns:
- macAlgorithmsClientToServer
-
getMacAlgorithmsServerToClient
public Ssh2NameList getMacAlgorithmsServerToClient()
- Returns:
- macAlgorithmsServerToClient
-
getCompressionAlgorithmsClientToServer
public Ssh2NameList getCompressionAlgorithmsClientToServer()
- Returns:
- compressionAlgorithmsClientToServer
-
getCompressionAlgorithmsServerToClient
public Ssh2NameList getCompressionAlgorithmsServerToClient()
- Returns:
- compressionAlgorithmsServerToClient
-
getLanguagesClientToServer
public Ssh2NameList getLanguagesClientToServer()
- Returns:
- languagesClientToServer
-
getLanguagesServerToClient
public Ssh2NameList getLanguagesServerToClient()
- Returns:
- languagesServerToClient
-
getFirstKexPacketFollows
public Ssh2Boolean getFirstKexPacketFollows()
- Returns:
- firstKexPacketFollows
-
getReserved
public int getReserved()
- Returns:
- reserved
-
getRawFields
protected java.util.List<byte[]> getRawFields()
Description copied from class:AbstractPacket.AbstractHeaderReturns a list of byte arrays which represents this header's fields. This method is called bycalcLength()andbuildRawData().- Specified by:
getRawFieldsin classAbstractPacket.AbstractHeader- Returns:
- a list of byte arrays which represents this header's fields
-
calcLength
protected int calcLength()
Description copied from class:AbstractPacket.AbstractHeaderThis method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.- Overrides:
calcLengthin classAbstractPacket.AbstractHeader- Returns:
- a calculated length
-
buildString
protected java.lang.String buildString()
Description copied from class:AbstractPacket.AbstractHeaderThis method builds the valuetoString()will return.- Overrides:
buildStringin classAbstractPacket.AbstractHeader- Returns:
- a string representation of this object
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:AbstractPacket.AbstractHeaderIndicates whether some other object is "equal to" this one using return values ofgetRawData(). This method should be overridden so that it does more strict comparisons more efficiently.- Overrides:
equalsin classAbstractPacket.AbstractHeader
-
calcHashCode
protected int calcHashCode()
Description copied from class:AbstractPacket.AbstractHeaderThis method builds the valuehashCode()will return using the byte arraygetRawData()returns. This method may be better to be overridden for performance reason.- Overrides:
calcHashCodein classAbstractPacket.AbstractHeader- Returns:
- a calculated hash code value for the object
-
-