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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UnsignedByte
TheUnsignedByte
associated with this type of message.static final byte
Thebyte
value associated with this type of message. -
Method Summary
Modifier and TypeMethodDescriptionReturns theUnsignedByte
associated with this type of message.Returns theVersion
of thisAbortMessage
.byte[]
Returns thebyte
array of thisAbortMessage
.toString()
Returns theString
representation of thisAbortMessage
.static AbortMessage
Returns 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_VALUEThebyte
value associated with this type of message.- See Also:
-
MESSAGE_TYPE
TheUnsignedByte
associated 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 theUnsignedByte
associated with this type of message.- Returns:
- the
UnsignedByte
associated with this type of message
-
getVersion
Returns theVersion
of thisAbortMessage
.- Returns:
- the
Version
of thisAbortMessage
-
toByteArray
public byte[] toByteArray()Returns thebyte
array of thisAbortMessage
.- Returns:
- the
byte
array of thisAbortMessage
-
toString
Returns theString
representation of thisAbortMessage
.- Overrides:
toString
in classEnum<AbortMessage>
- Returns:
- the
String
representation of thisAbortMessage
-