|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a public key mechanism for use within the SSH API
Method Summary | |
java.lang.String |
getFingerprint()
Implement this method to return the keys fingerprint |
java.lang.String |
getFormattedKey()
Implement this to return a formatted key string |
void |
init(byte[] hostkey)
Called by the framework to initialize the key |
boolean |
verifySignature(byte[] signature,
byte[] exchangeHash)
Implement this method to verify the signature |
Method Detail |
public void init(byte[] hostkey) throws InvalidHostKeyException
hostkey
- The host key data
InvalidHostKeyException
- Throw if the host key data is invalidpublic java.lang.String getFormattedKey()
public java.lang.String getFingerprint()
public boolean verifySignature(byte[] signature, byte[] exchangeHash) throws InvalidHostKeySignatureException
signature
- The signature to verifyexchangeHash
- The exchange hash output of
key exchange
InvalidHostKeySignatureException
- Throw if the signature is in
an invalid format (not for a verification failure)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |