Package com.jcraft.jsch
Class KeyPairDeferred
java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairDeferred
A
KeyPair which can only reveal its type and content after it was decrypted using decrypt(byte[]).
This is needed for openssh-v1-private-key format.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleandecrypt(byte[] _passphrase) booleanbyte[]Returns the finger-print of the public key.intbyte[]Returns the blob of the public key.byte[]getSignature(byte[] data) byte[]getSignature(byte[] data, String alg) getVerifier(String alg) booleanMethods inherited from class com.jcraft.jsch.KeyPair
dispose, finalize, genKeyPair, genKeyPair, load, load, load, setPassphrase, setPassphrase, setPublicKeyComment, writePrivateKey, writePrivateKey, writePrivateKey, writePrivateKey, writePublicKey, writePublicKey, writeSECSHPublicKey, writeSECSHPublicKey
-
Method Details
-
decrypt
-
decrypt
public boolean decrypt(byte[] _passphrase) -
getSignature
public byte[] getSignature(byte[] data) - Specified by:
getSignaturein classKeyPair
-
getSignature
- Specified by:
getSignaturein classKeyPair
-
getVerifier
- Specified by:
getVerifierin classKeyPair
-
getVerifier
- Specified by:
getVerifierin classKeyPair
-
forSSHAgent
- Specified by:
forSSHAgentin classKeyPair- Throws:
JSchException
-
getKeyType
public int getKeyType()- Specified by:
getKeyTypein classKeyPair
-
getPublicKeyBlob
public byte[] getPublicKeyBlob()Description copied from class:KeyPairReturns the blob of the public key.- Overrides:
getPublicKeyBlobin classKeyPair- Returns:
- blob of the public key
-
getPublicKeyComment
- Overrides:
getPublicKeyCommentin classKeyPair
-
getFingerPrint
Description copied from class:KeyPairReturns the finger-print of the public key.- Overrides:
getFingerPrintin classKeyPair- Returns:
- finger print
-
isEncrypted
public boolean isEncrypted()- Overrides:
isEncryptedin classKeyPair
-