Class SshKeyPair
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshKeyPair
- Direct Known Subclasses:
SshDssKeyPair,SshRsaKeyPair
- Version:
- $Revision: 1.17 $
- Author:
- $author$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SshPrivateKeydecodePrivateKey(byte[] encoded) abstract SshPublicKeydecodePublicKey(byte[] encoded) abstract voidgenerate(int bits) setPrivateKey(byte[] encoded) voidsetPublicKey(byte[] encoded)
-
Constructor Details
-
SshKeyPair
public SshKeyPair()Creates a new SshKeyPair object.
-
-
Method Details
-
generate
public abstract void generate(int bits) - Parameters:
bits-
-
setPrivateKey
- Parameters:
key-
-
setPrivateKey
- Parameters:
encoded-- Returns:
- Throws:
InvalidSshKeyException
-
getPrivateKey
- Returns:
-
setPublicKey
- Parameters:
encoded-- Returns:
- Throws:
InvalidSshKeyException
-
getPublicKey
- Returns:
-
decodePrivateKey
- Parameters:
encoded-- Returns:
- Throws:
InvalidSshKeyException
-
decodePublicKey
- Parameters:
encoded-- Returns:
- Throws:
InvalidSshKeyException
-