Enum Class AbortMessage
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
A message sent by the server refusing the client's connection for any
reason (GSS-API authentication failure or otherwise).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnsignedByteTheUnsignedByteassociated with this type of message.static final byteThebytevalue associated with this type of message. -
Method Summary
Modifier and TypeMethodDescriptionReturns theUnsignedByteassociated with this type of message.Returns theVersionof thisAbortMessage.byte[]Returns thebytearray of thisAbortMessage.toString()Returns theStringrepresentation of thisAbortMessage.static AbortMessageReturns the enum constant of this class with the specified name.static AbortMessage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance of anAbortMessage.
-
-
Field Details
-
MESSAGE_TYPE_BYTE_VALUE
public static final byte MESSAGE_TYPE_BYTE_VALUEThebytevalue associated with this type of message.- See Also:
-
MESSAGE_TYPE
TheUnsignedByteassociated with this type of message.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getMessageType
Returns theUnsignedByteassociated with this type of message.- Returns:
- the
UnsignedByteassociated with this type of message
-
getVersion
Returns theVersionof thisAbortMessage.- Returns:
- the
Versionof thisAbortMessage
-
toByteArray
public byte[] toByteArray()Returns thebytearray of thisAbortMessage.- Returns:
- the
bytearray of thisAbortMessage
-
toString
Returns theStringrepresentation of thisAbortMessage.- Overrides:
toStringin classEnum<AbortMessage>- Returns:
- the
Stringrepresentation of thisAbortMessage
-