com.sshtools.j2ssh.transport.publickey
Class SshPrivateKey

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.SshPrivateKey
Direct Known Subclasses:
SshRsaPrivateKey

public abstract class SshPrivateKey
extends java.lang.Object

Version:
$Revision: 1.17 $
Author:
$author$

Constructor Summary
SshPrivateKey()
          Creates a new SshPrivateKey object.
 
Method Summary
abstract  byte[] generateSignature(byte[] data)
           
abstract  java.lang.String getAlgorithmName()
           
abstract  int getBitLength()
           
abstract  byte[] getEncoded()
           
abstract  SshPublicKey getPublicKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshPrivateKey

public SshPrivateKey()
Creates a new SshPrivateKey object.

Method Detail

getAlgorithmName

public abstract java.lang.String getAlgorithmName()
Returns:

getBitLength

public abstract int getBitLength()
Returns:

getEncoded

public abstract byte[] getEncoded()
Returns:

getPublicKey

public abstract SshPublicKey getPublicKey()
Returns:

generateSignature

public abstract byte[] generateSignature(byte[] data)
                                  throws InvalidSshKeySignatureException
Parameters:
data -
Returns:
Throws:
InvalidSshKeySignatureException


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.