Package com.jcraft.jsch
Class KeyPairDSA
java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairDSA
public class KeyPairDSA extends KeyPair
-
Field Summary
-
Constructor Summary
Constructors Constructor Description KeyPairDSA(JSch jsch)KeyPairDSA(JSch jsch, byte[] P_array, byte[] Q_array, byte[] G_array, byte[] pub_array, byte[] prv_array) -
Method Summary
Modifier and Type Method Description voiddispose()byte[]forSSHAgent()intgetKeySize()intgetKeyType()byte[]getPublicKeyBlob()Returns the blob of the public key.byte[]getSignature(byte[] data)byte[]getSignature(byte[] data, java.lang.String alg)SignaturegetVerifier()SignaturegetVerifier(java.lang.String alg)Methods inherited from class com.jcraft.jsch.KeyPair
decrypt, decrypt, finalize, genKeyPair, genKeyPair, getFingerPrint, getPublicKeyComment, isEncrypted, load, load, load, setPassphrase, setPassphrase, setPublicKeyComment, writePrivateKey, writePrivateKey, writePrivateKey, writePrivateKey, writePublicKey, writePublicKey, writeSECSHPublicKey, writeSECSHPublicKeyMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
KeyPairDSA
-
KeyPairDSA
public KeyPairDSA(JSch jsch, byte[] P_array, byte[] Q_array, byte[] G_array, byte[] pub_array, byte[] prv_array)
-
-
Method Details
-
getPublicKeyBlob
public byte[] getPublicKeyBlob()Description copied from class:KeyPairReturns the blob of the public key.- Overrides:
getPublicKeyBlobin classKeyPair- Returns:
- blob of the public key
-
getKeyType
public int getKeyType()- Specified by:
getKeyTypein classKeyPair
-
getKeySize
public int getKeySize() -
getSignature
public byte[] getSignature(byte[] data)- Specified by:
getSignaturein classKeyPair
-
getSignature
public byte[] getSignature(byte[] data, java.lang.String alg)- Specified by:
getSignaturein classKeyPair
-
getVerifier
- Specified by:
getVerifierin classKeyPair
-
getVerifier
- Specified by:
getVerifierin classKeyPair
-
forSSHAgent
- Specified by:
forSSHAgentin classKeyPair- Throws:
JSchException
-
dispose
public void dispose()
-