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

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

public class SshDssPublicKey
extends SshPublicKey

DOCUMENT ME!


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()
          DOCUMENT ME!
 int getBitLength()
          DOCUMENT ME!
 byte[] getEncoded()
          DOCUMENT ME!
 boolean verifySignature(byte[] signature, byte[] data)
          DOCUMENT ME!
 
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
 

Constructor Detail

SshDssPublicKey

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

Parameters:
key - DOCUMENT ME!

SshDssPublicKey

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

Parameters:
key - DOCUMENT ME!
Throws:
InvalidSshKeyException - DOCUMENT ME!
Method Detail

getAlgorithmName

public java.lang.String getAlgorithmName()
DOCUMENT ME!

Specified by:
getAlgorithmName in class SshPublicKey
Returns:
DOCUMENT ME!

getBitLength

public int getBitLength()
DOCUMENT ME!

Specified by:
getBitLength in class SshPublicKey
Returns:
DOCUMENT ME!

getEncoded

public byte[] getEncoded()
DOCUMENT ME!

Specified by:
getEncoded in class SshPublicKey
Returns:
DOCUMENT ME!

verifySignature

public boolean verifySignature(byte[] signature,
                               byte[] data)
                        throws InvalidSshKeySignatureException
DOCUMENT ME!

Specified by:
verifySignature in class SshPublicKey
Parameters:
signature - DOCUMENT ME!
data - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
InvalidSshKeySignatureException - DOCUMENT ME!