com.sshtools.j2ssh.transport.publickey.dsa
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 |
SshDssPublicKey(byte[] key)
Creates a new SshDssPublicKey object. |
SshDssPublicKey(java.security.interfaces.DSAPublicKey key)
Creates a new SshDssPublicKey object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.