Tamir.SharpSsh.jsch.KeyPair Class Reference

Inheritance diagram for Tamir.SharpSsh.jsch.KeyPair:

Tamir.SharpSsh.jsch.KeyPairDSA Tamir.SharpSsh.jsch.KeyPairRSA

List of all members.

Public Member Functions

abstract int getKeySize ()
 KeyPair (JSch jsch)
void writePrivateKey (Stream outs)
abstract int getKeyType ()
virtual byte[] getPublicKeyBlob ()
void writePublicKey (Stream outs, String comment)
void writePublicKey (String name, String comment)
void writeSECSHPublicKey (Stream outs, String comment)
void writeSECSHPublicKey (String name, String comment)
void writePrivateKey (String name)
String getFingerPrint ()
void setPassphrase (String passphrase)
void setPassphrase (byte[] passphrase)
bool isEncrypted ()
bool decrypt (String _passphrase)
virtual void dispose ()

Static Public Member Functions

static KeyPair genKeyPair (JSch jsch, int type)
static KeyPair genKeyPair (JSch jsch, int type, int key_size)
static KeyPair load (JSch jsch, String prvkey)
static KeyPair load (JSch jsch, String prvkey, String pubkey)

Public Attributes

const int ERROR = 0
const int DSA = 1
const int RSA = 2
const int UNKNOWN = 3


Detailed Description

Definition at line 37 of file KeyPair.cs.


Constructor & Destructor Documentation

Tamir.SharpSsh.jsch.KeyPair.KeyPair ( JSch  jsch  ) 

Definition at line 79 of file KeyPair.cs.


Member Function Documentation

bool Tamir.SharpSsh.jsch.KeyPair.decrypt ( String  _passphrase  ) 

Definition at line 438 of file KeyPair.cs.

virtual void Tamir.SharpSsh.jsch.KeyPair.dispose (  )  [virtual]

Reimplemented in Tamir.SharpSsh.jsch.KeyPairDSA, and Tamir.SharpSsh.jsch.KeyPairRSA.

Definition at line 732 of file KeyPair.cs.

static KeyPair Tamir.SharpSsh.jsch.KeyPair.genKeyPair ( JSch  jsch,
int  type,
int  key_size 
) [static]

Definition at line 54 of file KeyPair.cs.

static KeyPair Tamir.SharpSsh.jsch.KeyPair.genKeyPair ( JSch  jsch,
int  type 
) [static]

Definition at line 50 of file KeyPair.cs.

String Tamir.SharpSsh.jsch.KeyPair.getFingerPrint (  ) 

Definition at line 210 of file KeyPair.cs.

abstract int Tamir.SharpSsh.jsch.KeyPair.getKeySize (  )  [pure virtual]

abstract int Tamir.SharpSsh.jsch.KeyPair.getKeyType (  )  [pure virtual]

virtual byte [] Tamir.SharpSsh.jsch.KeyPair.getPublicKeyBlob (  )  [virtual]

Reimplemented in Tamir.SharpSsh.jsch.KeyPairDSA, and Tamir.SharpSsh.jsch.KeyPairRSA.

Definition at line 145 of file KeyPair.cs.

bool Tamir.SharpSsh.jsch.KeyPair.isEncrypted (  ) 

Definition at line 437 of file KeyPair.cs.

static KeyPair Tamir.SharpSsh.jsch.KeyPair.load ( JSch  jsch,
String  prvkey,
String  pubkey 
) [static]

Definition at line 459 of file KeyPair.cs.

static KeyPair Tamir.SharpSsh.jsch.KeyPair.load ( JSch  jsch,
String  prvkey 
) [static]

Definition at line 449 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.setPassphrase ( byte[]  passphrase  ) 

Definition at line 425 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.setPassphrase ( String  passphrase  ) 

Definition at line 414 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.writePrivateKey ( String  name  ) 

Definition at line 203 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.writePrivateKey ( Stream  outs  ) 

Definition at line 94 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.writePublicKey ( String  name,
String  comment 
)

Definition at line 164 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.writePublicKey ( Stream  outs,
String  comment 
)

Definition at line 147 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.writeSECSHPublicKey ( String  name,
String  comment 
)

Definition at line 195 of file KeyPair.cs.

void Tamir.SharpSsh.jsch.KeyPair.writeSECSHPublicKey ( Stream  outs,
String  comment 
)

Definition at line 171 of file KeyPair.cs.


Member Data Documentation

Definition at line 40 of file KeyPair.cs.

Definition at line 39 of file KeyPair.cs.

Definition at line 41 of file KeyPair.cs.

Definition at line 42 of file KeyPair.cs.


The documentation for this class was generated from the following file:

Generated on Wed Jul 21 15:05:32 2010 for SharpSSH by  doxygen 1.5.9