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 intAUTH_CANCELLED_BY_USERstatic intBY_APPLICATIONstatic intCOMPRESSION_ERRORstatic intCONNECTION_LOSTstatic intHOST_KEY_NOT_VERIFIABLEstatic intHOST_NOT_ALLOWEDstatic intILLEGAL_USER_NAMEstatic intKEY_EXCHANGE_FAILEDstatic intMAC_ERRORstatic intNO_MORE_AUTH_METHODS_AVAILABLEstatic intPROTOCOL_ERRORstatic intPROTOCOL_VERSION_NOT_SUPPORTEDstatic intRESERVEDstatic intSERVICE_NOT_AVAILABLEprotected static intSSH_MSG_DISCONNECTstatic intTOO_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 voidconstructByteArray(ByteArrayWriter baw)Message implementations should implement this method, writing the data as exected in the transport protocol message format.protected voidconstructMessage(ByteArrayReader bar)Message implementation should implement this method, reading the data as expected in the transport protocol message format.java.lang.StringgetDescription()java.lang.StringgetLanguageTag()java.lang.StringgetMessageName()Returns the name of the message implementation for debugging purposes.intgetReasonCode()-
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:SshMessageReturns the name of the message implementation for debugging purposes.
- Specified by:
getMessageNamein classSshMessage- Returns:
-
getReasonCode
public int getReasonCode()
- Returns:
-
constructByteArray
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException
Description copied from class:SshMessageMessage implementations should implement this method, writing the data as exected in the transport protocol message format.
- Specified by:
constructByteArrayin classSshMessage- Parameters:
baw-- Throws:
InvalidMessageException
-
constructMessage
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException
Description copied from class:SshMessageMessage implementation should implement this method, reading the data as expected in the transport protocol message format.
- Specified by:
constructMessagein classSshMessage- Parameters:
bar-- Throws:
InvalidMessageException
-
-