com.jcraft.jsch
Class KeyPairDSA

java.lang.Object
  extended by com.jcraft.jsch.KeyPair
      extended by com.jcraft.jsch.KeyPairDSA

public class KeyPairDSA
extends KeyPair


Field Summary
 
Fields inherited from class com.jcraft.jsch.KeyPair
DSA, ERROR, publicKeyComment, RSA, UNKNOWN
 
Constructor Summary
KeyPairDSA(JSch jsch)
           
KeyPairDSA(JSch jsch, byte[] P_array, byte[] Q_array, byte[] G_array, byte[] pub_array, byte[] prv_array)
           
 
Method Summary
 void dispose()
           
 byte[] forSSHAgent()
           
 int getKeySize()
           
 int getKeyType()
           
 byte[] getPublicKeyBlob()
          Returns the blob of the public key.
 byte[] getSignature(byte[] data)
           
 Signature getVerifier()
           
 
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, writeSECSHPublicKey
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyPairDSA

public KeyPairDSA(JSch jsch)

KeyPairDSA

public KeyPairDSA(JSch jsch,
                  byte[] P_array,
                  byte[] Q_array,
                  byte[] G_array,
                  byte[] pub_array,
                  byte[] prv_array)
Method Detail

getPublicKeyBlob

public byte[] getPublicKeyBlob()
Description copied from class: KeyPair
Returns the blob of the public key.

Overrides:
getPublicKeyBlob in class KeyPair
Returns:
blob of the public key

getKeyType

public int getKeyType()
Specified by:
getKeyType in class KeyPair

getKeySize

public int getKeySize()

getSignature

public byte[] getSignature(byte[] data)
Specified by:
getSignature in class KeyPair

getVerifier

public Signature getVerifier()
Specified by:
getVerifier in class KeyPair

forSSHAgent

public byte[] forSSHAgent()
                   throws JSchException
Specified by:
forSSHAgent in class KeyPair
Throws:
JSchException

dispose

public void dispose()
Overrides:
dispose in class KeyPair