Package com.jcraft.jsch
Class KeyPairRSA
java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairRSA
-
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 byte[]
private static final byte[]
private byte[]
private byte[]
private int
private byte[]
private byte[]
private byte[]
private byte[]
private 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
ConstructorsConstructorDescriptionKeyPairRSA
(JSch jsch) KeyPairRSA
(JSch jsch, byte[] n_array, byte[] pub_array, byte[] prv_array) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
byte[]
(package private) static KeyPair
fromSSHAgent
(JSch jsch, Buffer buf) (package private) void
generate
(int key_size) (package private) byte[]
getBegin()
private byte[]
(package private) byte[]
getEnd()
private byte[]
private byte[]
int
int
(package private) byte[]
(package private) byte[]
byte[]
Returns the blob of the public key.byte[]
getSignature
(byte[] data) (package private) boolean
parse
(byte[] plain) Methods inherited from class com.jcraft.jsch.KeyPair
copy, countLength, decrypt, decrypt, 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
-
n_array
private byte[] n_array -
pub_array
private byte[] pub_array -
prv_array
private byte[] prv_array -
p_array
private byte[] p_array -
q_array
private byte[] q_array -
ep_array
private byte[] ep_array -
eq_array
private byte[] eq_array -
c_array
private byte[] c_array -
key_size
private int key_size -
begin
private static final byte[] begin -
end
private static final byte[] end -
sshrsa
private static final byte[] sshrsa
-
-
Constructor Details
-
KeyPairRSA
-
KeyPairRSA
-
-
Method Details
-
generate
- Specified by:
generate
in classKeyPair
- Throws:
JSchException
-
getBegin
byte[] getBegin() -
getEnd
byte[] getEnd() -
getPrivateKey
byte[] getPrivateKey()- Specified by:
getPrivateKey
in classKeyPair
-
parse
boolean parse(byte[] plain) -
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
-
getKeyTypeName
byte[] getKeyTypeName()- Specified by:
getKeyTypeName
in classKeyPair
-
getKeyType
public int getKeyType()- Specified by:
getKeyType
in classKeyPair
-
getKeySize
public int getKeySize()- Specified by:
getKeySize
in classKeyPair
-
getSignature
public byte[] getSignature(byte[] data) - Specified by:
getSignature
in classKeyPair
-
getVerifier
- Specified by:
getVerifier
in classKeyPair
-
fromSSHAgent
- Throws:
JSchException
-
forSSHAgent
- Specified by:
forSSHAgent
in classKeyPair
- Throws:
JSchException
-
getEPArray
private byte[] getEPArray() -
getEQArray
private byte[] getEQArray() -
getCArray
private byte[] getCArray() -
dispose
public void dispose()
-