Package com.jcraft.jsch
Class KeyPairECDSA
java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairECDSA
-
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 intprivate byte[]private static String[]private static byte[][]private byte[]private byte[]private 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
ConstructorsConstructorDescriptionKeyPairECDSA(JSch jsch) KeyPairECDSA(JSch jsch, byte[] pubkey) KeyPairECDSA(JSch jsch, byte[] name, byte[] r_array, byte[] s_array, byte[] prv_array) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()byte[](package private) static byte[][]fromPoint(byte[] point) (package private) static KeyPairfromSSHAgent(JSch jsch, Buffer buf) (package private) voidgenerate(int key_size) (package private) byte[]getBegin()(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) (package private) static byte[]toPoint(byte[] r_array, byte[] s_array) 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
-
oids
private static byte[][] oids -
names
-
name
private byte[] name -
r_array
private byte[] r_array -
s_array
private byte[] s_array -
prv_array
private byte[] prv_array -
key_size
private int key_size -
begin
private static final byte[] begin -
end
private static final byte[] end
-
-
Constructor Details
-
KeyPairECDSA
-
KeyPairECDSA
-
KeyPairECDSA
-
-
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
-
fromSSHAgent
- Throws:
JSchException
-
forSSHAgent
- Specified by:
forSSHAgentin classKeyPair- Throws:
JSchException
-
toPoint
static byte[] toPoint(byte[] r_array, byte[] s_array) -
fromPoint
static byte[][] fromPoint(byte[] point) -
dispose
public void dispose()
-