com.maverick.ssh.components
Interface SshDsaPrivateKey

All Superinterfaces:
SshPrivateKey
All Known Implementing Classes:
Ssh2DsaPrivateKey, Ssh2DsaPrivateKey

public interface SshDsaPrivateKey
extends SshPrivateKey

This interface should be implemented by all DSA private key implementations.

Author:
Lee David Painter

Method Summary
 SshDsaPublicKey getPublicKey()
           
 java.math.BigInteger getX()
           
 byte[] sign(byte[] msg)
          Create a signature from the data.
 
Methods inherited from interface com.maverick.ssh.components.SshPrivateKey
getAlgorithm
 

Method Detail

getX

public java.math.BigInteger getX()

sign

public byte[] sign(byte[] msg)
            throws java.io.IOException
Description copied from interface: SshPrivateKey
Create a signature from the data.

Specified by:
sign in interface SshPrivateKey
Parameters:
msg -
Returns:
byte[]
Throws:
java.io.IOException

getPublicKey

public SshDsaPublicKey getPublicKey()


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