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