java.lang.Object
com.github.jh3nd3rs0n.jargyle.protocolbase.socks5.gssapiauthmethod.EncapsulatedUserDataMessage

public final class EncapsulatedUserDataMessage extends Object
A message with user data encapsulated by GSS-API.
  • Field Details

    • MESSAGE_TYPE_BYTE_VALUE

      public static final byte MESSAGE_TYPE_BYTE_VALUE
      The byte value associated with this type of message.
      See Also:
    • MESSAGE_TYPE

      public static final UnsignedByte MESSAGE_TYPE
      The UnsignedByte associated with this type of message.
  • Method Details

    • newInstance

      public static EncapsulatedUserDataMessage newInstance(Token tkn)
      Returns a new EncapsulatedUserDataMessage with the provided Token.
      Parameters:
      tkn - the provided Token
      Returns:
      a new EncapsulatedUserDataMessage with the provided Token
    • newInstanceFrom

      public static EncapsulatedUserDataMessage newInstanceFrom(InputStream in) throws IOException
      Returns a new EncapsulatedUserDataMessage from the provided InputStream. An EOFException is thrown if the end of the provided InputStream is reached.
      Parameters:
      in - the provided InputStream
      Returns:
      a new EncapsulatedUserDataMessage
      Throws:
      IOException - if the end of the provided InputStream is reached (EOFException) or if an I/O error occurs
    • newInstanceFrom

      public static EncapsulatedUserDataMessage newInstanceFrom(byte[] b)
      Returns a new EncapsulatedUserDataMessage from the provided byte array. An IllegalArgumentException is thrown if the provided byte array is invalid.
      Parameters:
      b - the provided byte array
      Returns:
      a new EncapsulatedUserDataMessage
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getMessageType

      public UnsignedByte getMessageType()
      Returns the UnsignedByte associated with this type of message.
      Returns:
      the UnsignedByte associated with this type of message
    • getToken

      public Token getToken()
      Returns the Token of this EncapsulatedUserDataMessage.
      Returns:
      the Token of this EncapsulatedUserDataMessage
    • getVersion

      public Version getVersion()
      Returns the Version of this EncapsulatedUserDataMessage.
      Returns:
      the Version of this EncapsulatedUserDataMessage
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toByteArray

      public byte[] toByteArray()
      Returns the byte array of this EncapsulatedUserDataMessage.
      Returns:
      the byte array of this EncapsulatedUserDataMessage
    • toString

      public String toString()
      Returns the String representation of this EncapsulatedUserDataMessage.
      Overrides:
      toString in class Object
      Returns:
      the String representation of this EncapsulatedUserDataMessage