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)
Signs the  
challengeHash using the specified signature Algorithm | 
boolean | 
verify(Algorithm algorithm,
      byte[] challengeHash,
      byte[] signatureBytes)
Verifies the  
signatureBytes against the challengeHash using an underlying public key | 
public String getId()
public String getFingerprint()
getFingerprint in interface FingerprintableKeypublic Set<Algorithm> getAlgorithms()
getAlgorithms in interface KeySet of Signature Algorithms supported by this key.public boolean verify(Algorithm algorithm, byte[] challengeHash, byte[] signatureBytes)
signatureBytes against the challengeHash using an underlying public keyverify in interface Keyalgorithm - the selected Signature AlgorithmchallengeHash - the result of RequestContent.getBytesToSign(java.util.List, java.nio.charset.Charset)signatureBytes - the result of Authorization.getSignatureBytes()public boolean canVerify()
public boolean canSign()
public byte[] sign(Algorithm algorithm, byte[] challengeHash)
challengeHash using the specified signature Algorithmsign in interface Keyalgorithm - the selected Signature AlgorithmchallengeHash - the result of RequestContent.getBytesToSign(java.util.List, java.nio.charset.Charset)public static Keychain getIdentities(com.jcraft.jsch.JSch jSch)
Copyright © 2013-2017. All Rights Reserved.