public class KeyPairPKCS8 extends KeyPair
KeyPair.ASN1, KeyPair.ASN1Exception
Modifier and Type | Field and Description |
---|---|
private static byte[] |
aes128cbc |
private static byte[] |
aes192cbc |
private static byte[] |
aes256cbc |
private static byte[] |
begin |
private static byte[] |
dsaEncryption |
private static byte[] |
end |
private KeyPair |
kpair |
private static byte[] |
pbes2 |
private static byte[] |
pbeWithMD5AndDESCBC |
private static byte[] |
pbkdf2 |
private static byte[] |
rsaEncryption |
data, DSA, ECDSA, encrypted, ERROR, header, jsch, publicKeyComment, RSA, UNKNOWN, vendor, VENDOR_FSECURE, VENDOR_OPENSSH, VENDOR_PKCS8, VENDOR_PUTTY
Constructor and Description |
---|
KeyPairPKCS8(JSch jsch) |
Modifier and Type | Method and Description |
---|---|
boolean |
decrypt(byte[] _passphrase) |
byte[] |
forSSHAgent() |
(package private) void |
generate(int key_size) |
(package private) byte[] |
getBegin() |
(package private) Cipher |
getCipher(byte[] id) |
(package private) byte[] |
getEnd() |
int |
getKeySize() |
int |
getKeyType() |
(package private) byte[] |
getKeyTypeName() |
(package private) byte[] |
getPrivateKey() |
byte[] |
getPublicKeyBlob()
Returns the blob of the public key.
|
byte[] |
getSignature(byte[] data) |
Signature |
getVerifier() |
(package private) boolean |
parse(byte[] plain) |
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
private static final byte[] rsaEncryption
private static final byte[] dsaEncryption
private static final byte[] pbes2
private static final byte[] pbkdf2
private static final byte[] aes128cbc
private static final byte[] aes192cbc
private static final byte[] aes256cbc
private static final byte[] pbeWithMD5AndDESCBC
private KeyPair kpair
private static final byte[] begin
private static final byte[] end
public KeyPairPKCS8(JSch jsch)
void generate(int key_size) throws JSchException
generate
in class KeyPair
JSchException
byte[] getPrivateKey()
getPrivateKey
in class KeyPair
public byte[] getPublicKeyBlob()
KeyPair
getPublicKeyBlob
in class KeyPair
byte[] getKeyTypeName()
getKeyTypeName
in class KeyPair
public int getKeyType()
getKeyType
in class KeyPair
public int getKeySize()
getKeySize
in class KeyPair
public byte[] getSignature(byte[] data)
getSignature
in class KeyPair
public Signature getVerifier()
getVerifier
in class KeyPair
public byte[] forSSHAgent() throws JSchException
forSSHAgent
in class KeyPair
JSchException
Cipher getCipher(byte[] id)