jssh
Class SMSG_AUTH_RSA_CHALLENGE

java.lang.Object
  |
  +--jssh.Packet
        |
        +--jssh.SMSG_AUTH_RSA_CHALLENGE
All Implemented Interfaces:
IPacketConstants

public class SMSG_AUTH_RSA_CHALLENGE
extends Packet

Sent by the server in response to a SSH_CMSG_AUTH_RSA message from the client. This message contains 32 8-bit random bytes, encrypted with the client's public key.


Field Summary
protected  byte[] _data
          This byte array represents the data block, EXCLUDING the padding bytes and the CRC (in other words, it contains just the packet-type byte and the binary data bytes).
 
Fields inherited from interface jssh.IPacketConstants
SSH_CMSG_AUTH_PASSWORD, SSH_CMSG_AUTH_RSA, SSH_CMSG_AUTH_RSA_RESPONSE, SSH_CMSG_EOF, SSH_CMSG_EXEC_CMD, SSH_CMSG_EXEC_SHELL, SSH_CMSG_EXIT_CONFIRMATION, SSH_CMSG_PORT_FORWARD_REQUEST, SSH_CMSG_REQUEST_COMPRESSION, SSH_CMSG_REQUEST_PTY, SSH_CMSG_SESSION_KEY, SSH_CMSG_STDIN_DATA, SSH_CMSG_USER, SSH_MSG_CHANNEL_CLOSE, SSH_MSG_CHANNEL_CLOSE_CONFIRMATION, SSH_MSG_CHANNEL_DATA, SSH_MSG_CHANNEL_OPEN_CONFIRMATION, SSH_MSG_CHANNEL_OPEN_FAILURE, SSH_MSG_DEBUG, SSH_MSG_DISCONNECT, SSH_MSG_IGNORE, SSH_MSG_PORT_OPEN, SSH_SMSG_AUTH_RSA_CHALLENGE, SSH_SMSG_EXITSTATUS, SSH_SMSG_FAILURE, SSH_SMSG_PUBLIC_KEY, SSH_SMSG_STDERR_DATA, SSH_SMSG_STDOUT_DATA, SSH_SMSG_SUCCESS
 
Constructor Summary
(package private) SMSG_AUTH_RSA_CHALLENGE(byte[] data_)
          Use this constructor when receiving a SMSG_AUTH_RSA_CHALLENGE packet on the network.
 
Method Summary
 byte[] getChallenge()
           
(package private)  byte[] getData()
          Returns the byte array including the packet-type byte and the binary data bytes
(package private)  byte getPacketType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_data

protected byte[] _data
This byte array represents the data block, EXCLUDING the padding bytes and the CRC (in other words, it contains just the packet-type byte and the binary data bytes).

Constructor Detail

SMSG_AUTH_RSA_CHALLENGE

SMSG_AUTH_RSA_CHALLENGE(byte[] data_)
Use this constructor when receiving a SMSG_AUTH_RSA_CHALLENGE packet on the network.

Method Detail

getChallenge

public byte[] getChallenge()

getPacketType

byte getPacketType()

getData

byte[] getData()
Returns the byte array including the packet-type byte and the binary data bytes