Class Ssh2KexInitPacket.Ssh2KexInitHeader

java.lang.Object
org.pcap4j.packet.AbstractPacket.AbstractHeader
org.pcap4j.packet.Ssh2KexInitPacket.Ssh2KexInitHeader
All Implemented Interfaces:
Serializable, Packet.Header
Enclosing class:
Ssh2KexInitPacket

public static final class Ssh2KexInitPacket.Ssh2KexInitHeader extends AbstractPacket.AbstractHeader
Version:
pcap4j 1.0.1
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • messageNumber

      private final Ssh2MessageNumber messageNumber
    • 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 Details

  • Method Details

    • 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 List<byte[]> getRawFields()
      Description copied from class: AbstractPacket.AbstractHeader
      Returns a list of byte arrays which represents this header's fields. This method is called by calcLength() and buildRawData().
      Specified by:
      getRawFields in class AbstractPacket.AbstractHeader
      Returns:
      a list of byte arrays which represents this header's fields
    • calcLength

      protected int calcLength()
      Description copied from class: AbstractPacket.AbstractHeader
      This method calculates the value length() will return by adding up the lengths of byte arrays in the list getRawFields() returns.
      Overrides:
      calcLength in class AbstractPacket.AbstractHeader
      Returns:
      a calculated length
    • buildString

      protected String buildString()
      Description copied from class: AbstractPacket.AbstractHeader
      This method builds the value toString() will return.
      Overrides:
      buildString in class AbstractPacket.AbstractHeader
      Returns:
      a string representation of this object
    • equals

      public boolean equals(Object obj)
      Description copied from class: AbstractPacket.AbstractHeader
      Indicates whether some other object is "equal to" this one using return values of getRawData(). This method should be overridden so that it does more strict comparisons more efficiently.
      Overrides:
      equals in class AbstractPacket.AbstractHeader
    • calcHashCode

      protected int calcHashCode()
      Description copied from class: AbstractPacket.AbstractHeader
      This method builds the value hashCode() will return using the byte array getRawData() returns. This method may be better to be overridden for performance reason.
      Overrides:
      calcHashCode in class AbstractPacket.AbstractHeader
      Returns:
      a calculated hash code value for the object