com.sshtools.j2ssh.agent
Class SshAgentAddKey

java.lang.Object
  extended by com.sshtools.j2ssh.subsystem.SubsystemMessage
      extended by com.sshtools.j2ssh.agent.SshAgentAddKey

 class SshAgentAddKey
extends SubsystemMessage


Field Summary
(package private)  KeyConstraints constraints
           
(package private)  java.lang.String description
           
(package private)  SshPrivateKey prvkey
           
(package private)  SshPublicKey pubkey
           
static int SSH_AGENT_ADD_KEY
           
 
Constructor Summary
SshAgentAddKey()
          Creates a new SshAgentAddKey object.
SshAgentAddKey(SshPrivateKey prvkey, SshPublicKey pubkey, java.lang.String description, KeyConstraints constraints)
          Creates a new SshAgentAddKey object.
 
Method Summary
 void constructByteArray(ByteArrayWriter baw)
           
 void constructMessage(ByteArrayReader bar)
           
 java.lang.String getDescription()
           
 KeyConstraints getKeyConstraints()
           
 java.lang.String getMessageName()
           
 SshPrivateKey getPrivateKey()
           
 SshPublicKey getPublicKey()
           
 
Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage
fromByteArray, getMessageType, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_AGENT_ADD_KEY

public static final int SSH_AGENT_ADD_KEY
See Also:
Constant Field Values

prvkey

SshPrivateKey prvkey

pubkey

SshPublicKey pubkey

description

java.lang.String description

constraints

KeyConstraints constraints
Constructor Detail

SshAgentAddKey

public SshAgentAddKey()
Creates a new SshAgentAddKey object.


SshAgentAddKey

public SshAgentAddKey(SshPrivateKey prvkey,
                      SshPublicKey pubkey,
                      java.lang.String description,
                      KeyConstraints constraints)
Creates a new SshAgentAddKey object.

Parameters:
prvkey -
pubkey -
description -
constraints -
Method Detail

getPrivateKey

public SshPrivateKey getPrivateKey()
Returns:

getPublicKey

public SshPublicKey getPublicKey()
Returns:

getDescription

public java.lang.String getDescription()
Returns:

getKeyConstraints

public KeyConstraints getKeyConstraints()
Returns:

getMessageName

public java.lang.String getMessageName()
Specified by:
getMessageName in class SubsystemMessage
Returns:

constructByteArray

public void constructByteArray(ByteArrayWriter baw)
                        throws java.io.IOException,
                               InvalidMessageException
Specified by:
constructByteArray in class SubsystemMessage
Parameters:
baw -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!
InvalidMessageException

constructMessage

public void constructMessage(ByteArrayReader bar)
                      throws java.io.IOException,
                             InvalidMessageException
Specified by:
constructMessage in class SubsystemMessage
Parameters:
bar -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!
InvalidMessageException