public class KeyPairDSA extends KeyPair
KeyPair.ASN1, KeyPair.ASN1Exception
Modifier and Type | Field and Description |
---|---|
private static byte[] |
begin |
private static byte[] |
end |
private byte[] |
G_array |
private int |
key_size |
private byte[] |
P_array |
private byte[] |
prv_array |
private byte[] |
pub_array |
private byte[] |
Q_array |
private static byte[] |
sshdss |
data, DSA, ECDSA, encrypted, ERROR, header, jsch, publicKeyComment, RSA, UNKNOWN, vendor, VENDOR_FSECURE, VENDOR_OPENSSH, VENDOR_PKCS8, VENDOR_PUTTY
Constructor and Description |
---|
KeyPairDSA(JSch jsch) |
KeyPairDSA(JSch jsch,
byte[] P_array,
byte[] Q_array,
byte[] G_array,
byte[] pub_array,
byte[] prv_array) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
byte[] |
forSSHAgent() |
(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) |
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 byte[] P_array
private byte[] Q_array
private byte[] G_array
private byte[] pub_array
private byte[] prv_array
private int key_size
private static final byte[] begin
private static final byte[] end
private static final byte[] sshdss
public KeyPairDSA(JSch jsch)
public KeyPairDSA(JSch jsch, byte[] P_array, byte[] Q_array, byte[] G_array, byte[] pub_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