maspack.fileutil.jsch
Class KeyPairRSA

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

public class KeyPairRSA
extends KeyPair


Field Summary
 
Fields inherited from class maspack.fileutil.jsch.KeyPair
DSA, ERROR, RSA, UNKNOWN
 
Constructor Summary
KeyPairRSA()
           
KeyPairRSA(byte[] n_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

KeyPairRSA

public KeyPairRSA()

KeyPairRSA

public KeyPairRSA(byte[] n_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