Class SshDssPublicKey
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshPublicKey
com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey
- Version:
- $Revision: 1.27 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionSshDssPublicKey(byte[] key) Creates a new SshDssPublicKey object.Creates a new SshDssPublicKey object. -
Method Summary
Modifier and TypeMethodDescriptionintbyte[]booleanverifySignature(byte[] signature, byte[] data) Methods inherited from class com.sshtools.j2ssh.transport.publickey.SshPublicKey
equals, getFingerprint, hashCode
-
Constructor Details
-
SshDssPublicKey
Creates a new SshDssPublicKey object.- Parameters:
key-
-
SshDssPublicKey
Creates a new SshDssPublicKey object.- Parameters:
key-- Throws:
InvalidSshKeyException
-
-
Method Details
-
getAlgorithmName
- Specified by:
getAlgorithmNamein classSshPublicKey- Returns:
-
getBitLength
public int getBitLength()- Specified by:
getBitLengthin classSshPublicKey- Returns:
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin classSshPublicKey- Returns:
-
verifySignature
public boolean verifySignature(byte[] signature, byte[] data) throws InvalidSshKeySignatureException - Specified by:
verifySignaturein classSshPublicKey- Parameters:
signature-data-- Returns:
- Throws:
InvalidSshKeySignatureException
-