public abstract class SshKeyPair
extends java.lang.Object
| Constructor and Description |
|---|
SshKeyPair()
Creates a new SshKeyPair object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SshPrivateKey |
decodePrivateKey(byte[] encoded) |
abstract SshPublicKey |
decodePublicKey(byte[] encoded) |
abstract void |
generate(int bits) |
SshPrivateKey |
getPrivateKey() |
SshPublicKey |
getPublicKey() |
SshPrivateKey |
setPrivateKey(byte[] encoded) |
void |
setPrivateKey(SshPrivateKey key) |
SshPublicKey |
setPublicKey(byte[] encoded) |
public abstract void generate(int bits)
bits - public void setPrivateKey(SshPrivateKey key)
key - public SshPrivateKey setPrivateKey(byte[] encoded) throws InvalidSshKeyException
encoded - InvalidSshKeyExceptionpublic SshPrivateKey getPrivateKey()
public SshPublicKey setPublicKey(byte[] encoded) throws InvalidSshKeyException
encoded - InvalidSshKeyExceptionpublic SshPublicKey getPublicKey()
public abstract SshPrivateKey decodePrivateKey(byte[] encoded) throws InvalidSshKeyException
encoded - InvalidSshKeyExceptionpublic abstract SshPublicKey decodePublicKey(byte[] encoded) throws InvalidSshKeyException
encoded - InvalidSshKeyExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.