public class SshKeyPair
extends java.lang.Object
SshPrivateKey and an SshPublicKey. Key pairs
are used by {link SshIdentityManager}.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SSH1_RSA
SSH1 RSA
|
static java.lang.String |
SSH2_DSA
SSH2 DSA
|
static java.lang.String |
SSH2_RSA
SSH2 RSA
|
| Constructor and Description |
|---|
SshKeyPair(SshPublicKey publicKey,
SshPrivateKey privateKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SshPrivateKey |
getPrivateKey()
Get the private key portion of this key pair.
|
SshPublicKey |
getPublicKey()
Get the public key portion of this key pair.
|
void |
setPrivateKey(SshPrivateKey privateKey)
Set the private key portion of this key pair.
|
void |
setPublicKey(SshPublicKey publicKey)
Set the public key portion of this key pair.
|
public static final java.lang.String SSH1_RSA
public static final java.lang.String SSH2_RSA
public static final java.lang.String SSH2_DSA
public SshKeyPair(SshPublicKey publicKey, SshPrivateKey privateKey)
publicKey - public keyprivateKey - private keypublic SshPublicKey getPublicKey()
public void setPublicKey(SshPublicKey publicKey)
publicKey - public keypublic SshPrivateKey getPrivateKey()
public void setPrivateKey(SshPrivateKey privateKey)
privateKey - private keyCopyright © 2018. All rights reserved.