public class SshKeyPair extends Object
| Constructor and Description |
|---|
SshKeyPair() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SshKeyPair |
getKeyPair(SshPrivateKey prv,
SshPublicKey pub)
Wraps a public/private key pair into an SshKeyPair instance.
|
SshPrivateKey |
getPrivateKey()
Get the private key.
|
SshPublicKey |
getPublicKey()
Get the public key.
|
int |
hashCode() |
void |
setPrivateKey(SshPrivateKey privatekey)
Set the private key
|
void |
setPublicKey(SshPublicKey publickey)
Set the public key
|
public SshPrivateKey getPrivateKey()
public SshPublicKey getPublicKey()
public static SshKeyPair getKeyPair(SshPrivateKey prv, SshPublicKey pub)
prv - pub - public void setPrivateKey(SshPrivateKey privatekey)
privatekey - public void setPublicKey(SshPublicKey publickey)
publickey - Copyright © 2025. All rights reserved.