com.maverick.ssh.components
Class SshKeyPair

java.lang.Object
  extended bycom.maverick.ssh.components.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:
SshPrivateKey

getPublicKey

public SshPublicKey getPublicKey()
Get the public key.

Returns:
SshPublicKey

getKeyPair

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

Parameters:
prv -
pub -
Returns:
SshKeyPair

setPrivateKey

public void setPrivateKey(SshPrivateKey privatekey)
Set the private key

Parameters:
privatekey -

setPublicKey

public void setPublicKey(SshPublicKey publickey)
Set the public key

Parameters:
publickey -


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.