java.lang.Object
java.lang.Enum<AbortMessage>
com.github.jh3nd3rs0n.jargyle.protocolbase.socks5.gssapimethod.AbortMessage
All Implemented Interfaces:
Serializable, Comparable<AbortMessage>, java.lang.constant.Constable

public enum AbortMessage extends Enum<AbortMessage>
A message sent by the server refusing the client's connection for any reason (GSS-API authentication failure or otherwise).
  • Enum Constant Details

    • INSTANCE

      public static final AbortMessage INSTANCE
      The singleton instance of an AbortMessage.
  • 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

    • values

      public static AbortMessage[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AbortMessage valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMessageType

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

      public Version getVersion()
      Returns the Version of this AbortMessage.
      Returns:
      the Version of this AbortMessage
    • toByteArray

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

      public String toString()
      Returns the String representation of this AbortMessage.
      Overrides:
      toString in class Enum<AbortMessage>
      Returns:
      the String representation of this AbortMessage