maspack.fileutil.jsch
Class KeyPairDSA

java.lang.Object
  extended by maspack.fileutil.jsch.KeyPair
      extended by maspack.fileutil.jsch.KeyPairDSA

public class KeyPairDSA
extends KeyPair


Field Summary
 
Fields inherited from class maspack.fileutil.jsch.KeyPair
DSA, ERROR, RSA, UNKNOWN
 
Constructor Summary
KeyPairDSA()
           
KeyPairDSA(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[] getKeyTypeName()
           
 byte[] getPublicKeyBlob()
           
 byte[] getSignature(byte[] data)
           
 com.jcraft.jsch.Signature getVerifier()
           
 
Methods inherited from class maspack.fileutil.jsch.KeyPair
decrypt, decrypt, finalize, genKeyPair, genKeyPair, getFingerPrint, getPublicKeyComment, isEncrypted, load, load, load, load, loadPPK, setPassphrase, setPassphrase, setPublicKeyComment, writePrivateKey, writePrivateKey, writePublicKey, writePublicKey, writeSECSHPublicKey, writeSECSHPublicKey
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyPairDSA

public KeyPairDSA()

KeyPairDSA

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

getPublicKeyBlob

public byte[] getPublicKeyBlob()
Overrides:
getPublicKeyBlob in class KeyPair

getKeyTypeName

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

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 com.jcraft.jsch.Signature getVerifier()
Specified by:
getVerifier in class KeyPair

forSSHAgent

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

dispose

public void dispose()
Overrides:
dispose in class KeyPair