com.sshtools.j2ssh.agent
Class SshAgentAddKey
java.lang.Object
com.sshtools.j2ssh.subsystem.SubsystemMessage
com.sshtools.j2ssh.agent.SshAgentAddKey
class SshAgentAddKey
- extends SubsystemMessage
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
-
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