public class JschKey extends Object implements FingerprintableKey
| Constructor and Description |
|---|
JschKey(com.jcraft.jsch.Identity identity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSign() |
boolean |
canVerify() |
Set<Algorithm> |
getAlgorithms() |
String |
getFingerprint() |
String |
getId() |
static Keychain |
getIdentities(com.jcraft.jsch.JSch jSch) |
byte[] |
sign(Algorithm algorithm,
byte[] challengeHash) |
boolean |
verify(Algorithm algorithm,
byte[] challengeHash,
byte[] signatureBytes) |
public String getFingerprint()
getFingerprint in interface FingerprintableKeypublic Set<Algorithm> getAlgorithms()
getAlgorithms in interface Keypublic boolean verify(Algorithm algorithm, byte[] challengeHash, byte[] signatureBytes)
verify in interface Keyalgorithm - the selected Signature AlgorithmchallengeHash - the result of SignatureBuilder.buildContent(java.util.List, java.nio.charset.Charset)signatureBytes - the result of Authorization.getSignatureBytes()public byte[] sign(Algorithm algorithm, byte[] challengeHash)
sign in interface Keyalgorithm - the selected Signature AlgorithmchallengeHash - the result of SignatureBuilder.buildContent(java.util.List, java.nio.charset.Charset)public static Keychain getIdentities(com.jcraft.jsch.JSch jSch)
Copyright © 2013. All Rights Reserved.