public class KeyPairECDSA extends KeyPair
KeyPair.ASN1, KeyPair.ASN1Exception
Modifier and Type | Field and 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 |
data, DSA, ECDSA, encrypted, ERROR, header, jsch, publicKeyComment, RSA, UNKNOWN, vendor, VENDOR_FSECURE, VENDOR_OPENSSH, VENDOR_PKCS8, VENDOR_PUTTY
Constructor and Description |
---|
KeyPairECDSA(JSch jsch) |
KeyPairECDSA(JSch jsch,
byte[] pubkey) |
KeyPairECDSA(JSch jsch,
byte[] name,
byte[] r_array,
byte[] s_array,
byte[] prv_array) |
Modifier and Type | Method and 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) |
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
private static byte[][] oids
private static java.lang.String[] names
private byte[] name
private byte[] r_array
private byte[] s_array
private byte[] prv_array
private int key_size
private static final byte[] begin
private static final byte[] end
public KeyPairECDSA(JSch jsch)
public KeyPairECDSA(JSch jsch, byte[] pubkey)
public KeyPairECDSA(JSch jsch, byte[] name, byte[] r_array, byte[] s_array, byte[] prv_array)
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
static KeyPair fromSSHAgent(JSch jsch, Buffer buf) throws JSchException
JSchException
public byte[] forSSHAgent() throws JSchException
forSSHAgent
in class KeyPair
JSchException
static byte[] toPoint(byte[] r_array, byte[] s_array)
static byte[][] fromPoint(byte[] point)