Package com.jcraft.jsch
Class KeyPairPKCS8
java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairPKCS8
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
decrypt
(byte[] _passphrase) byte[]
int
int
byte[]
Returns the blob of the public key.byte[]
getSignature
(byte[] data) Methods inherited from class com.jcraft.jsch.KeyPair
decrypt, dispose, finalize, genKeyPair, genKeyPair, getFingerPrint, getPublicKeyComment, isEncrypted, load, load, load, setPassphrase, setPassphrase, setPublicKeyComment, writePrivateKey, writePrivateKey, writePrivateKey, writePrivateKey, writePublicKey, writePublicKey, writeSECSHPublicKey, writeSECSHPublicKey
-
Constructor Details
-
KeyPairPKCS8
-
-
Method Details
-
getPublicKeyBlob
public byte[] getPublicKeyBlob()Description copied from class:KeyPair
Returns the blob of the public key.- Overrides:
getPublicKeyBlob
in classKeyPair
- Returns:
- blob of the public key
-
getKeyType
public int getKeyType()- Specified by:
getKeyType
in classKeyPair
-
getKeySize
public int getKeySize() -
getSignature
public byte[] getSignature(byte[] data) - Specified by:
getSignature
in classKeyPair
-
getVerifier
- Specified by:
getVerifier
in classKeyPair
-
forSSHAgent
- Specified by:
forSSHAgent
in classKeyPair
- Throws:
JSchException
-
decrypt
public boolean decrypt(byte[] _passphrase)
-