Package com.jcraft.jsch
Class KeyPairPKCS8
- java.lang.Object
-
- com.jcraft.jsch.KeyPair
-
- com.jcraft.jsch.KeyPairPKCS8
-
public class KeyPairPKCS8 extends KeyPair
-
-
Constructor Summary
Constructors Constructor Description KeyPairPKCS8(JSch jsch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandecrypt(byte[] _passphrase)byte[]forSSHAgent()intgetKeySize()intgetKeyType()byte[]getPublicKeyBlob()Returns the blob of the public key.byte[]getSignature(byte[] data)SignaturegetVerifier()-
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 Detail
-
KeyPairPKCS8
public KeyPairPKCS8(JSch jsch)
-
-
Method Detail
-
getPublicKeyBlob
public byte[] getPublicKeyBlob()
Description copied from class:KeyPairReturns the blob of the public key.- Overrides:
getPublicKeyBlobin classKeyPair- Returns:
- blob of the public key
-
getKeyType
public int getKeyType()
- Specified by:
getKeyTypein classKeyPair
-
getKeySize
public int getKeySize()
-
getSignature
public byte[] getSignature(byte[] data)
- Specified by:
getSignaturein classKeyPair
-
getVerifier
public Signature getVerifier()
- Specified by:
getVerifierin classKeyPair
-
forSSHAgent
public byte[] forSSHAgent() throws JSchException- Specified by:
forSSHAgentin classKeyPair- Throws:
JSchException
-
-