com.sshtools.j2ssh.transport

Class SshMsgDisconnect


public class SshMsgDisconnect
extends SshMessage

Version:
$Revision: 1.20 $
Author:
$author$

Field Summary

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

SshMsgDisconnect()
Creates a new SshMsgDisconnect object.
SshMsgDisconnect(int reasonCode, String desc, String langTag)
Creates a new SshMsgDisconnect object.

Method Summary

protected void
constructByteArray(ByteArrayWriter baw)
protected void
constructMessage(ByteArrayReader bar)
String
getDescription()
String
getLanguageTag()
String
getMessageName()
int
getReasonCode()

Methods inherited from class com.sshtools.j2ssh.transport.SshMessage

constructByteArray, constructMessage, fromByteArray, getMessageId, getMessageId, getMessageName, toByteArray

Field Details

AUTH_CANCELLED_BY_USER

public static final int AUTH_CANCELLED_BY_USER
Field Value:
13

BY_APPLICATION

public static final int BY_APPLICATION
Field Value:
11

COMPRESSION_ERROR

public static final int COMPRESSION_ERROR
Field Value:
6

CONNECTION_LOST

public static final int CONNECTION_LOST
Field Value:
10

HOST_KEY_NOT_VERIFIABLE

public static final int HOST_KEY_NOT_VERIFIABLE
Field Value:
9

HOST_NOT_ALLOWED

public static final int HOST_NOT_ALLOWED
Field Value:
1

ILLEGAL_USER_NAME

public static final int ILLEGAL_USER_NAME
Field Value:
15

KEY_EXCHANGE_FAILED

public static final int KEY_EXCHANGE_FAILED
Field Value:
3

MAC_ERROR

public static final int MAC_ERROR
Field Value:
5

NO_MORE_AUTH_METHODS_AVAILABLE

public static final int NO_MORE_AUTH_METHODS_AVAILABLE
Field Value:
14

PROTOCOL_ERROR

public static final int PROTOCOL_ERROR
Field Value:
2

PROTOCOL_VERSION_NOT_SUPPORTED

public static final int PROTOCOL_VERSION_NOT_SUPPORTED
Field Value:
8

RESERVED

public static final int RESERVED
Field Value:
4

SERVICE_NOT_AVAILABLE

public static final int SERVICE_NOT_AVAILABLE
Field Value:
7

SSH_MSG_DISCONNECT

protected static final int SSH_MSG_DISCONNECT
Field Value:
1

TOO_MANY_CONNECTIONS

public static final int TOO_MANY_CONNECTIONS
Field Value:
12

Constructor Details

SshMsgDisconnect

public SshMsgDisconnect()
Creates a new SshMsgDisconnect object.

SshMsgDisconnect

public SshMsgDisconnect(int reasonCode,
                        String desc,
                        String langTag)
Creates a new SshMsgDisconnect object.
Parameters:
reasonCode -
desc -
langTag -

Method Details

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
            throws InvalidMessageException
Overrides:
constructByteArray in interface SshMessage
Parameters:
baw -

constructMessage

protected void constructMessage(ByteArrayReader bar)
            throws InvalidMessageException
Overrides:
constructMessage in interface SshMessage
Parameters:
bar -

getDescription

public String getDescription()
Returns:

getLanguageTag

public String getLanguageTag()
Returns:

getMessageName

public String getMessageName()
Overrides:
getMessageName in interface SshMessage
Returns:

getReasonCode

public int getReasonCode()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.