Package com.jcraft.jsch
Class KeyPairECDSA
- java.lang.Object
-
- com.jcraft.jsch.KeyPair
-
- com.jcraft.jsch.KeyPairECDSA
-
public class KeyPairECDSA extends KeyPair
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jcraft.jsch.KeyPair
KeyPair.ASN1, KeyPair.ASN1Exception
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
begin
private static byte[]
end
private int
key_size
private byte[]
name
private static java.lang.String[]
names
private static byte[][]
oids
private byte[]
prv_array
private byte[]
r_array
private byte[]
s_array
-
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 Constructor Description KeyPairECDSA(JSch jsch)
KeyPairECDSA(JSch jsch, byte[] pubkey)
KeyPairECDSA(JSch jsch, byte[] name, byte[] r_array, byte[] s_array, byte[] prv_array)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
byte[]
forSSHAgent()
(package private) static byte[][]
fromPoint(byte[] point)
(package private) static KeyPair
fromSSHAgent(JSch jsch, Buffer buf)
(package private) void
generate(int key_size)
(package private) byte[]
getBegin()
(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)
(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 Detail
-
oids
private static byte[][] oids
-
names
private static java.lang.String[] 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
-
-
Method Detail
-
generate
void generate(int key_size) throws JSchException
- Specified by:
generate
in classKeyPair
- Throws:
JSchException
-
getPrivateKey
byte[] getPrivateKey()
- Specified by:
getPrivateKey
in classKeyPair
-
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
public Signature getVerifier()
- Specified by:
getVerifier
in classKeyPair
-
fromSSHAgent
static KeyPair fromSSHAgent(JSch jsch, Buffer buf) throws JSchException
- Throws:
JSchException
-
forSSHAgent
public byte[] forSSHAgent() throws JSchException
- Specified by:
forSSHAgent
in classKeyPair
- Throws:
JSchException
-
toPoint
static byte[] toPoint(byte[] r_array, byte[] s_array)
-
fromPoint
static byte[][] fromPoint(byte[] point)
-
-