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.String
getAlgorithmName()
abstract int
getBitLength()
abstract byte[]
getEncoded()
abstract SshPublicKey
getPublicKey()
-
-
-
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
-
-