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 TypeMethodDescriptionint
byte[]
boolean
verifySignature
(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:
getAlgorithmName
in classSshPublicKey
- Returns:
-
getBitLength
public int getBitLength()- Specified by:
getBitLength
in classSshPublicKey
- Returns:
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in classSshPublicKey
- Returns:
-
verifySignature
public boolean verifySignature(byte[] signature, byte[] data) throws InvalidSshKeySignatureException - Specified by:
verifySignature
in classSshPublicKey
- Parameters:
signature
-data
-- Returns:
- Throws:
InvalidSshKeySignatureException
-