Class SshPrivateKey
- java.lang.Object
-
- 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
Constructors Constructor Description SshPrivateKey()Creates a new SshPrivateKey object.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract byte[]generateSignature(byte[] data)abstract java.lang.StringgetAlgorithmName()abstract intgetBitLength()abstract byte[]getEncoded()abstract SshPublicKeygetPublicKey()
-
-
-
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
-
-