public final class SshConstants extends Object
Modifier and Type | Method and Description |
---|---|
static Set<Integer> |
getAmbiguousOpcodes() |
static String |
getCommandMessageName(int cmd)
Converts a command value to a user-friendly name
|
static String |
getDisconnectReasonName(int reason)
Converts a disconnect reason value to a user-friendly name
|
static String |
getOpenErrorCodeName(int code)
Converts an open error value to a user-friendly name
|
static boolean |
isAmbigouosOpcode(int cmd) |
public static final byte SSH_MSG_DISCONNECT
public static final byte SSH_MSG_IGNORE
public static final byte SSH_MSG_UNIMPLEMENTED
public static final byte SSH_MSG_DEBUG
public static final byte SSH_MSG_SERVICE_REQUEST
public static final byte SSH_MSG_SERVICE_ACCEPT
public static final byte SSH_MSG_KEXINIT
public static final int MSG_KEX_COOKIE_SIZE
public static final byte SSH_MSG_NEWKEYS
public static final byte SSH_MSG_KEX_FIRST
public static final byte SSH_MSG_KEX_LAST
public static final byte SSH_MSG_KEXDH_INIT
public static final byte SSH_MSG_KEXDH_REPLY
public static final byte SSH_MSG_KEX_DH_GEX_REQUEST_OLD
public static final byte SSH_MSG_KEX_DH_GEX_GROUP
public static final byte SSH_MSG_KEX_DH_GEX_INIT
public static final byte SSH_MSG_KEX_DH_GEX_REPLY
public static final byte SSH_MSG_KEX_DH_GEX_REQUEST
public static final byte SSH_MSG_USERAUTH_REQUEST
public static final byte SSH_MSG_USERAUTH_FAILURE
public static final byte SSH_MSG_USERAUTH_SUCCESS
public static final byte SSH_MSG_USERAUTH_BANNER
public static final byte SSH_MSG_USERAUTH_INFO_REQUEST
public static final byte SSH_MSG_USERAUTH_INFO_RESPONSE
public static final byte SSH_MSG_USERAUTH_PK_OK
public static final byte SSH_MSG_USERAUTH_PASSWD_CHANGEREQ
public static final byte SSH_MSG_USERAUTH_GSSAPI_MIC
public static final byte SSH_MSG_GLOBAL_REQUEST
public static final byte SSH_MSG_REQUEST_SUCCESS
public static final byte SSH_MSG_REQUEST_FAILURE
public static final byte SSH_MSG_CHANNEL_OPEN
public static final byte SSH_MSG_CHANNEL_OPEN_CONFIRMATION
public static final byte SSH_MSG_CHANNEL_OPEN_FAILURE
public static final byte SSH_MSG_CHANNEL_WINDOW_ADJUST
public static final byte SSH_MSG_CHANNEL_DATA
public static final byte SSH_MSG_CHANNEL_EXTENDED_DATA
public static final byte SSH_MSG_CHANNEL_EOF
public static final byte SSH_MSG_CHANNEL_CLOSE
public static final byte SSH_MSG_CHANNEL_REQUEST
public static final byte SSH_MSG_CHANNEL_SUCCESS
public static final byte SSH_MSG_CHANNEL_FAILURE
public static final int SSH2_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT
public static final int SSH2_DISCONNECT_PROTOCOL_ERROR
public static final int SSH2_DISCONNECT_KEY_EXCHANGE_FAILED
public static final int SSH2_DISCONNECT_HOST_AUTHENTICATION_FAILED
public static final int SSH2_DISCONNECT_RESERVED
public static final int SSH2_DISCONNECT_MAC_ERROR
public static final int SSH2_DISCONNECT_COMPRESSION_ERROR
public static final int SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE
public static final int SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED
public static final int SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE
public static final int SSH2_DISCONNECT_CONNECTION_LOST
public static final int SSH2_DISCONNECT_BY_APPLICATION
public static final int SSH2_DISCONNECT_TOO_MANY_CONNECTIONS
public static final int SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER
public static final int SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE
public static final int SSH2_DISCONNECT_ILLEGAL_USER_NAME
public static final int SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
public static final int SSH_OPEN_CONNECT_FAILED
public static final int SSH_OPEN_UNKNOWN_CHANNEL_TYPE
public static final int SSH_OPEN_RESOURCE_SHORTAGE
public static final int SSH_EXTENDED_DATA_STDERR
public static boolean isAmbigouosOpcode(int cmd)
cmd
- The command valuetrue
if this value is used by several different messagesgetAmbiguousOpcodes()
public static Set<Integer> getAmbiguousOpcodes()
Set
of opcodes that are used by several different messagespublic static String getCommandMessageName(int cmd)
cmd
- The command valueSSH_MSG_XXX
values then returns the string representation of the command's valuepublic static String getDisconnectReasonName(int reason)
reason
- The disconnect reason valueSSH2_DISCONNECT_
values then returns the string representation of the reason's valuepublic static String getOpenErrorCodeName(int code)
code
- The open error valueSSH_OPEN_
values then returns the string representation of the reason's valueCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.