Package com.jcraft.jsch
Class KeyPairPKCS8
java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairPKCS8
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jcraft.jsch.KeyPair
KeyPair.ASN1, KeyPair.ASN1Exception -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final byte[]private static final byte[]private static final byte[]private static final byte[]private static final byte[]private KeyPairprivate static final byte[]private static final byte[]private static final byte[]private static final byte[]Fields inherited from class com.jcraft.jsch.KeyPair
data, DSA, ECDSA, encrypted, ERROR, header, jsch, publicKeyComment, RSA, UNKNOWN, vendor, VENDOR_FSECURE, VENDOR_OPENSSH, VENDOR_PKCS8, VENDOR_PUTTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandecrypt(byte[] _passphrase) byte[](package private) voidgenerate(int key_size) (package private) byte[]getBegin()(package private) CiphergetCipher(byte[] id) (package private) byte[]getEnd()intint(package private) byte[](package private) byte[]byte[]Returns the blob of the public key.byte[]getSignature(byte[] data) (package private) booleanparse(byte[] plain) Methods inherited from class com.jcraft.jsch.KeyPair
copy, countLength, decrypt, dispose, finalize, genKey, genKeyPair, genKeyPair, getFingerPrint, getPublicKeyComment, isEncrypted, load, load, load, loadPPK, setPassphrase, setPassphrase, setPublicKeyComment, writeDATA, writeINTEGER, writeLength, writeOCTETSTRING, writePrivateKey, writePrivateKey, writePrivateKey, writePrivateKey, writePublicKey, writePublicKey, writeSECSHPublicKey, writeSECSHPublicKey, writeSEQUENCE
-
Field Details
-
rsaEncryption
private static final byte[] rsaEncryption -
dsaEncryption
private static final byte[] dsaEncryption -
pbes2
private static final byte[] pbes2 -
pbkdf2
private static final byte[] pbkdf2 -
aes128cbc
private static final byte[] aes128cbc -
aes192cbc
private static final byte[] aes192cbc -
aes256cbc
private static final byte[] aes256cbc -
pbeWithMD5AndDESCBC
private static final byte[] pbeWithMD5AndDESCBC -
kpair
-
begin
private static final byte[] begin -
end
private static final byte[] end
-
-
Constructor Details
-
KeyPairPKCS8
-
-
Method Details
-
generate
- Specified by:
generatein classKeyPair- Throws:
JSchException
-
getBegin
byte[] getBegin() -
getEnd
byte[] getEnd() -
getPrivateKey
byte[] getPrivateKey()- Specified by:
getPrivateKeyin classKeyPair
-
parse
boolean parse(byte[] plain) -
getPublicKeyBlob
public byte[] getPublicKeyBlob()Description copied from class:KeyPairReturns the blob of the public key.- Overrides:
getPublicKeyBlobin classKeyPair- Returns:
- blob of the public key
-
getKeyTypeName
byte[] getKeyTypeName()- Specified by:
getKeyTypeNamein classKeyPair
-
getKeyType
public int getKeyType()- Specified by:
getKeyTypein classKeyPair
-
getKeySize
public int getKeySize()- Specified by:
getKeySizein classKeyPair
-
getSignature
public byte[] getSignature(byte[] data) - Specified by:
getSignaturein classKeyPair
-
getVerifier
- Specified by:
getVerifierin classKeyPair
-
forSSHAgent
- Specified by:
forSSHAgentin classKeyPair- Throws:
JSchException
-
decrypt
public boolean decrypt(byte[] _passphrase) -
getCipher
-