Class AuthenticationMessage
java.lang.Object
com.github.jh3nd3rs0n.jargyle.protocolbase.socks5.gssapimethod.AuthenticationMessage
A message sent by the client or the server during the authentication
process.
-
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 TypeMethodDescriptionbooleanReturns theUnsignedByteassociated with this type of message.getToken()Returns theTokenof thisAuthenticationMessage.Returns theVersionof thisAuthenticationMessage.inthashCode()static AuthenticationMessagenewInstance(Token tkn) Returns a newAuthenticationMessagewith the providedToken.static AuthenticationMessageReturns a newAuthenticationMessagefrom the providedInputStreamfrom the client.static AuthenticationMessageReturns a newAuthenticationMessagefrom the providedInputStreamfrom the server.byte[]Returns thebytearray of thisAuthenticationMessage.toString()Returns theStringrepresentation of thisAuthenticationMessage.
-
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
-
newInstance
Returns a newAuthenticationMessagewith the providedToken.- Parameters:
tkn- the providedToken- Returns:
- a new
AuthenticationMessagewith the providedToken
-
newInstanceFromClient
Returns a newAuthenticationMessagefrom the providedInputStreamfrom the client. AnEOFExceptionis thrown if the end of the providedInputStreamis reached.- Parameters:
in- the providedInputStreamfrom the client- Returns:
- a new
AuthenticationMessage - Throws:
IOException- if the end of the providedInputStreamis reached (EOFException) or if an I/O error occurs
-
newInstanceFromServer
Returns a newAuthenticationMessagefrom the providedInputStreamfrom the server. AnAbortMessageExceptionis thrown if anAbortMessageis received. AnEOFExceptionis thrown if the end of the providedInputStreamis reached.- Parameters:
in- the providedInputStreamfrom the server- Returns:
- a new
AuthenticationMessage - Throws:
IOException- if anAbortMessageis received (AbortMessageException), if the end of the providedInputStreamis reached (EOFException), or if an I/O error occurs
-
equals
-
getMessageType
Returns theUnsignedByteassociated with this type of message.- Returns:
- the
UnsignedByteassociated with this type of message
-
getToken
Returns theTokenof thisAuthenticationMessage.- Returns:
- the
Tokenof thisAuthenticationMessage
-
getVersion
Returns theVersionof thisAuthenticationMessage.- Returns:
- the
Versionof thisAuthenticationMessage
-
hashCode
public int hashCode() -
toByteArray
public byte[] toByteArray()Returns thebytearray of thisAuthenticationMessage.- Returns:
- the
bytearray of thisAuthenticationMessage
-
toString
Returns theStringrepresentation of thisAuthenticationMessage.
-