public class SshAgentAddKey extends AgentMessage
Constructor and Description |
---|
SshAgentAddKey()
Creates a new SshAgentAddKey object.
|
SshAgentAddKey(SshPrivateKey prvkey,
SshPublicKey pubkey,
String description,
KeyConstraints constraints)
Creates a new SshAgentAddKey object.
|
Modifier and Type | Method and Description |
---|---|
void |
constructByteArray(ByteArrayWriter baw) |
void |
constructMessage(ByteArrayReader bar) |
String |
getDescription() |
KeyConstraints |
getKeyConstraints() |
String |
getMessageName() |
SshPrivateKey |
getPrivateKey() |
SshPublicKey |
getPublicKey() |
fromByteArray, getMessageType, toByteArray
public SshAgentAddKey()
public SshAgentAddKey(SshPrivateKey prvkey, SshPublicKey pubkey, String description, KeyConstraints constraints)
prvkey
- pubkey
- description
- constraints
- public SshPrivateKey getPrivateKey()
public SshPublicKey getPublicKey()
public String getDescription()
public KeyConstraints getKeyConstraints()
public String getMessageName()
getMessageName
in class AgentMessage
public void constructByteArray(ByteArrayWriter baw) throws IOException, InvalidMessageException
constructByteArray
in class AgentMessage
baw
- IOException
com.maverick.agent.exceptions.j2ssh.transport.InvalidMessageException
- DOCUMENT
ME!InvalidMessageException
public void constructMessage(ByteArrayReader bar) throws IOException, InvalidMessageException
constructMessage
in class AgentMessage
bar
- IOException
com.maverick.agent.exceptions.j2ssh.transport.InvalidMessageException
- DOCUMENT
ME!InvalidMessageException
Copyright © 2024. All rights reserved.