Package com.sshtools.j2ssh.transport
Class SshMsgDisconnect
- java.lang.Object
-
- com.sshtools.j2ssh.transport.SshMessage
-
- com.sshtools.j2ssh.transport.SshMsgDisconnect
-
public class SshMsgDisconnect extends SshMessage
- Version:
- $Revision: 1.20 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTH_CANCELLED_BY_USER
static int
BY_APPLICATION
static int
COMPRESSION_ERROR
static int
CONNECTION_LOST
static int
HOST_KEY_NOT_VERIFIABLE
static int
HOST_NOT_ALLOWED
static int
ILLEGAL_USER_NAME
static int
KEY_EXCHANGE_FAILED
static int
MAC_ERROR
static int
NO_MORE_AUTH_METHODS_AVAILABLE
static int
PROTOCOL_ERROR
static int
PROTOCOL_VERSION_NOT_SUPPORTED
static int
RESERVED
static int
SERVICE_NOT_AVAILABLE
protected static int
SSH_MSG_DISCONNECT
static int
TOO_MANY_CONNECTIONS
-
Constructor Summary
Constructors Constructor Description SshMsgDisconnect()
Creates a new SshMsgDisconnect object.SshMsgDisconnect(int reasonCode, java.lang.String desc, java.lang.String langTag)
Creates a new SshMsgDisconnect object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
constructByteArray(ByteArrayWriter baw)
Message implementations should implement this method, writing the data as exected in the transport protocol message format.protected void
constructMessage(ByteArrayReader bar)
Message implementation should implement this method, reading the data as expected in the transport protocol message format.java.lang.String
getDescription()
java.lang.String
getLanguageTag()
java.lang.String
getMessageName()
Returns the name of the message implementation for debugging purposes.int
getReasonCode()
-
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage
fromByteArray, getMessageId, getMessageId, toByteArray
-
-
-
-
Field Detail
-
SSH_MSG_DISCONNECT
protected static final int SSH_MSG_DISCONNECT
- See Also:
- Constant Field Values
-
HOST_NOT_ALLOWED
public static final int HOST_NOT_ALLOWED
- See Also:
- Constant Field Values
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR
- See Also:
- Constant Field Values
-
KEY_EXCHANGE_FAILED
public static final int KEY_EXCHANGE_FAILED
- See Also:
- Constant Field Values
-
RESERVED
public static final int RESERVED
- See Also:
- Constant Field Values
-
MAC_ERROR
public static final int MAC_ERROR
- See Also:
- Constant Field Values
-
COMPRESSION_ERROR
public static final int COMPRESSION_ERROR
- See Also:
- Constant Field Values
-
SERVICE_NOT_AVAILABLE
public static final int SERVICE_NOT_AVAILABLE
- See Also:
- Constant Field Values
-
PROTOCOL_VERSION_NOT_SUPPORTED
public static final int PROTOCOL_VERSION_NOT_SUPPORTED
- See Also:
- Constant Field Values
-
HOST_KEY_NOT_VERIFIABLE
public static final int HOST_KEY_NOT_VERIFIABLE
- See Also:
- Constant Field Values
-
CONNECTION_LOST
public static final int CONNECTION_LOST
- See Also:
- Constant Field Values
-
BY_APPLICATION
public static final int BY_APPLICATION
- See Also:
- Constant Field Values
-
TOO_MANY_CONNECTIONS
public static final int TOO_MANY_CONNECTIONS
- See Also:
- Constant Field Values
-
AUTH_CANCELLED_BY_USER
public static final int AUTH_CANCELLED_BY_USER
- See Also:
- Constant Field Values
-
NO_MORE_AUTH_METHODS_AVAILABLE
public static final int NO_MORE_AUTH_METHODS_AVAILABLE
- See Also:
- Constant Field Values
-
ILLEGAL_USER_NAME
public static final int ILLEGAL_USER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Returns:
-
getLanguageTag
public java.lang.String getLanguageTag()
- Returns:
-
getMessageName
public java.lang.String 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
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException
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
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException
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
-
-