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) |
protected com.sshtools.common.ssh.components.SshKeyPair |
decodeKey(com.sshtools.common.util.ByteArrayReader bar) |
protected void |
encodeKey(com.sshtools.common.util.ByteArrayWriter baw) |
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
protected void encodeKey(com.sshtools.common.util.ByteArrayWriter baw) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
protected com.sshtools.common.ssh.components.SshKeyPair decodeKey(com.sshtools.common.util.ByteArrayReader bar) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
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 © 2022. All rights reserved.