com.sshtools.publickey
Class SshKeyPair

java.lang.Object
  extended bycom.sshtools.publickey.SshKeyPair

public class SshKeyPair
extends java.lang.Object

Storage class for a public/private key pair.

Author:
Lee David Painter

Constructor Summary
SshKeyPair()
           
 
Method Summary
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.
 void setPrivateKey(SshPrivateKey privatekey)
          Set the private key
 void setPublicKey(SshPublicKey publickey)
          Set the public key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshKeyPair

public SshKeyPair()
Method Detail

getPrivateKey

public SshPrivateKey getPrivateKey()
Get the private key.

Returns:

getPublicKey

public SshPublicKey getPublicKey()
Get the public key.

Returns:

getKeyPair

public static SshKeyPair getKeyPair(SshPrivateKey prv,
                                    SshPublicKey pub)
Wraps a public/private key pair into an SshKeyPair instance.

Parameters:
prv -
pub -
Returns:

setPrivateKey

public void setPrivateKey(SshPrivateKey privatekey)
Set the private key


setPublicKey

public void setPublicKey(SshPublicKey publickey)
Set the public key



Copyright © 2003 3SP LTD. All Rights Reserved.