|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sshtools.j2ssh.transport.publickey.SshDss
Constructor Summary | |
SshDss()
|
Method Summary | |
java.lang.String |
getFingerprint()
Gets the keys fingerprint |
java.lang.String |
getFormattedKey()
Gets the formatted key |
void |
init(byte[] hostKey)
Constructor for the SshDssPublicKey object |
boolean |
verifySignature(byte[] signature,
byte[] exchangeHash)
Called by the framework to verify the signature received during key exchange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SshDss()
Method Detail |
public void init(byte[] hostKey) throws InvalidHostKeyException
init
in interface SshPublicKey
hostKey
- The host key data
InvalidHostKeyException
- Thrown of the hopst key is invalidpublic boolean verifySignature(byte[] signature, byte[] exchangeHash) throws InvalidHostKeySignatureException
verifySignature
in interface SshPublicKey
signature
- The signature to verifyexchangeHash
- The exchange hash produced
during key exchange
InvalidHostKeySignatureException
- Thrown if the signature is
in an invalid formatpublic java.lang.String getFingerprint()
getFingerprint
in interface SshPublicKey
public java.lang.String getFormattedKey()
getFormattedKey
in interface SshPublicKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |