com.sshtools.j2ssh.transport.publickey.dsa
Class SshDssPrivateKey

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.SshPrivateKey
      extended by com.sshtools.j2ssh.transport.publickey.dsa.SshDssPrivateKey

 class SshDssPrivateKey
extends SshPrivateKey


Field Summary
private static org.apache.commons.logging.Log log
           
(package private)  java.security.interfaces.DSAPrivateKey prvkey
           
 
Constructor Summary
SshDssPrivateKey(byte[] key)
          Creates a new SshDssPrivateKey object.
SshDssPrivateKey(java.security.interfaces.DSAPrivateKey prvkey)
          Creates a new SshDssPrivateKey object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] generateSignature(byte[] data)
           
 java.lang.String getAlgorithmName()
           
 int getBitLength()
           
 byte[] getEncoded()
           
 SshPublicKey getPublicKey()
           
private  java.math.BigInteger getY()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

prvkey

java.security.interfaces.DSAPrivateKey prvkey
Constructor Detail

SshDssPrivateKey

public SshDssPrivateKey(java.security.interfaces.DSAPrivateKey prvkey)
Creates a new SshDssPrivateKey object.

Parameters:
prvkey -

SshDssPrivateKey

public SshDssPrivateKey(byte[] key)
                 throws InvalidSshKeyException
Creates a new SshDssPrivateKey object.

Parameters:
key -
Throws:
InvalidSshKeyException
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:

getAlgorithmName

public java.lang.String getAlgorithmName()
Specified by:
getAlgorithmName in class SshPrivateKey
Returns:

getBitLength

public int getBitLength()
Specified by:
getBitLength in class SshPrivateKey
Returns:

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in class SshPrivateKey
Returns:

getPublicKey

public SshPublicKey getPublicKey()
Specified by:
getPublicKey in class SshPrivateKey
Returns:

generateSignature

public byte[] generateSignature(byte[] data)
                         throws InvalidSshKeySignatureException
Specified by:
generateSignature in class SshPrivateKey
Parameters:
data -
Returns:
Throws:
InvalidSshKeySignatureException

getY

private java.math.BigInteger getY()