public class SshMsgDisconnect extends SshMessage
Modifier and Type | Field and 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 and Description |
---|
SshMsgDisconnect()
Creates a new SshMsgDisconnect object.
|
SshMsgDisconnect(int reasonCode,
java.lang.String desc,
java.lang.String langTag)
Creates a new SshMsgDisconnect object.
|
Modifier and Type | Method and 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() |
fromByteArray, getMessageId, getMessageId, toByteArray
protected static final int SSH_MSG_DISCONNECT
public static final int HOST_NOT_ALLOWED
public static final int PROTOCOL_ERROR
public static final int KEY_EXCHANGE_FAILED
public static final int RESERVED
public static final int MAC_ERROR
public static final int COMPRESSION_ERROR
public static final int SERVICE_NOT_AVAILABLE
public static final int PROTOCOL_VERSION_NOT_SUPPORTED
public static final int HOST_KEY_NOT_VERIFIABLE
public static final int CONNECTION_LOST
public static final int BY_APPLICATION
public static final int TOO_MANY_CONNECTIONS
public static final int AUTH_CANCELLED_BY_USER
public static final int NO_MORE_AUTH_METHODS_AVAILABLE
public static final int ILLEGAL_USER_NAME
public SshMsgDisconnect(int reasonCode, java.lang.String desc, java.lang.String langTag)
reasonCode
- desc
- langTag
- public SshMsgDisconnect()
public java.lang.String getDescription()
public java.lang.String getLanguageTag()
public java.lang.String getMessageName()
SshMessage
Returns the name of the message implementation for debugging purposes.
getMessageName
in class SshMessage
public int getReasonCode()
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException
SshMessage
Message implementations should implement this method, writing the data as exected in the transport protocol message format.
constructByteArray
in class SshMessage
baw
- InvalidMessageException
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException
SshMessage
Message implementation should implement this method, reading the data as expected in the transport protocol message format.
constructMessage
in class SshMessage
bar
- InvalidMessageException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.