com.sshtools.j2ssh.transport.publickey
Class SshKeyPair
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshKeyPair
- Direct Known Subclasses:
- SshDssKeyPair, SshRsaKeyPair
public abstract class SshKeyPair
- extends java.lang.Object
- Version:
- $Revision: 1.17 $
- Author:
- $author$
Constructor Summary |
SshKeyPair()
Creates a new SshKeyPair object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SshKeyPair
public SshKeyPair()
- Creates a new SshKeyPair object.
generate
public abstract void generate(int bits)
- Parameters:
bits
-
setPrivateKey
public void setPrivateKey(SshPrivateKey key)
- Parameters:
key
-
setPrivateKey
public SshPrivateKey setPrivateKey(byte[] encoded)
throws InvalidSshKeyException
- Parameters:
encoded
-
- Returns:
-
- Throws:
InvalidSshKeyException
getPrivateKey
public SshPrivateKey getPrivateKey()
- Returns:
setPublicKey
public SshPublicKey setPublicKey(byte[] encoded)
throws InvalidSshKeyException
- Parameters:
encoded
-
- Returns:
-
- Throws:
InvalidSshKeyException
getPublicKey
public SshPublicKey getPublicKey()
- Returns:
decodePrivateKey
public abstract SshPrivateKey decodePrivateKey(byte[] encoded)
throws InvalidSshKeyException
- Parameters:
encoded
-
- Returns:
-
- Throws:
InvalidSshKeyException
decodePublicKey
public abstract SshPublicKey decodePublicKey(byte[] encoded)
throws InvalidSshKeyException
- Parameters:
encoded
-
- Returns:
-
- Throws:
InvalidSshKeyException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.