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

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.SshPublicKey
      extended by com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey

public class SshDssPublicKey
extends SshPublicKey

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
private static org.apache.commons.logging.Log log
           
private  java.security.interfaces.DSAPublicKey pubkey
           
 
Constructor Summary
SshDssPublicKey(byte[] key)
          Creates a new SshDssPublicKey object.
SshDssPublicKey(java.security.interfaces.DSAPublicKey key)
          Creates a new SshDssPublicKey object.
 
Method Summary
 java.lang.String getAlgorithmName()
           
 int getBitLength()
           
 byte[] getEncoded()
           
 boolean verifySignature(byte[] signature, byte[] data)
           
 
Methods inherited from class com.sshtools.j2ssh.transport.publickey.SshPublicKey
equals, getFingerprint, 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

pubkey

private java.security.interfaces.DSAPublicKey pubkey
Constructor Detail

SshDssPublicKey

public SshDssPublicKey(java.security.interfaces.DSAPublicKey key)
Creates a new SshDssPublicKey object.

Parameters:
key -

SshDssPublicKey

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

Parameters:
key -
Throws:
InvalidSshKeyException
Method Detail

getAlgorithmName

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

getBitLength

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

getEncoded

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

verifySignature

public boolean verifySignature(byte[] signature,
                               byte[] data)
                        throws InvalidSshKeySignatureException
Specified by:
verifySignature in class SshPublicKey
Parameters:
signature -
data -
Returns:
Throws:
InvalidSshKeySignatureException