Package com.sshtools.j2ssh.transport
Class SshMsgDisconnect
java.lang.Object
com.sshtools.j2ssh.transport.SshMessage
com.sshtools.j2ssh.transport.SshMsgDisconnect
- Version:
- $Revision: 1.20 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SshMsgDisconnect object.SshMsgDisconnect
(int reasonCode, String desc, String langTag) Creates a new SshMsgDisconnect object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Message implementations should implement this method, writing the data as exected in the transport protocol message format.protected void
Message implementation should implement this method, reading the data as expected in the transport protocol message format.Returns the name of the message implementation for debugging purposes.int
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage
fromByteArray, getMessageId, getMessageId, toByteArray
-
Field Details
-
SSH_MSG_DISCONNECT
protected static final int SSH_MSG_DISCONNECT- See Also:
-
HOST_NOT_ALLOWED
public static final int HOST_NOT_ALLOWED- See Also:
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR- See Also:
-
KEY_EXCHANGE_FAILED
public static final int KEY_EXCHANGE_FAILED- See Also:
-
RESERVED
public static final int RESERVED- See Also:
-
MAC_ERROR
public static final int MAC_ERROR- See Also:
-
COMPRESSION_ERROR
public static final int COMPRESSION_ERROR- See Also:
-
SERVICE_NOT_AVAILABLE
public static final int SERVICE_NOT_AVAILABLE- See Also:
-
PROTOCOL_VERSION_NOT_SUPPORTED
public static final int PROTOCOL_VERSION_NOT_SUPPORTED- See Also:
-
HOST_KEY_NOT_VERIFIABLE
public static final int HOST_KEY_NOT_VERIFIABLE- See Also:
-
CONNECTION_LOST
public static final int CONNECTION_LOST- See Also:
-
BY_APPLICATION
public static final int BY_APPLICATION- See Also:
-
TOO_MANY_CONNECTIONS
public static final int TOO_MANY_CONNECTIONS- See Also:
-
AUTH_CANCELLED_BY_USER
public static final int AUTH_CANCELLED_BY_USER- See Also:
-
NO_MORE_AUTH_METHODS_AVAILABLE
public static final int NO_MORE_AUTH_METHODS_AVAILABLE- See Also:
-
ILLEGAL_USER_NAME
public static final int ILLEGAL_USER_NAME- See Also:
-
-
Constructor Details
-
SshMsgDisconnect
Creates a new SshMsgDisconnect object.- Parameters:
reasonCode
-desc
-langTag
-
-
SshMsgDisconnect
public SshMsgDisconnect()Creates a new SshMsgDisconnect object.
-
-
Method Details
-
getDescription
- Returns:
-
getLanguageTag
- Returns:
-
getMessageName
Description copied from class:SshMessage
Returns the name of the message implementation for debugging purposes.
- Specified by:
getMessageName
in classSshMessage
- Returns:
-
getReasonCode
public int getReasonCode()- Returns:
-
constructByteArray
Description copied from class:SshMessage
Message implementations should implement this method, writing the data as exected in the transport protocol message format.
- Specified by:
constructByteArray
in classSshMessage
- Parameters:
baw
-- Throws:
InvalidMessageException
-
constructMessage
Description copied from class:SshMessage
Message implementation should implement this method, reading the data as expected in the transport protocol message format.
- Specified by:
constructMessage
in classSshMessage
- Parameters:
bar
-- Throws:
InvalidMessageException
-