Class SshDssPublicKey
- java.lang.Object
-
- com.sshtools.j2ssh.transport.publickey.SshPublicKey
-
- com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey
-
public class SshDssPublicKey extends SshPublicKey
- Version:
- $Revision: 1.27 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description SshDssPublicKey(byte[] key)
Creates a new SshDssPublicKey object.SshDssPublicKey(java.security.interfaces.DSAPublicKey key)
Creates a new SshDssPublicKey object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 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
-
-