public class SshKeyPair
extends java.lang.Object
| Constructor and Description |
|---|
SshKeyPair() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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 - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2022. All rights reserved.