C# Class dlech.SshAgentLib.Agent

Implements OpenSSH Agent
Inheriting classes should implement the platform specific communication to get a message from a client and then call AnswerMessage method
Inheritance: IAgent, IDisposable
Afficher le fichier Open project: dlech/SshAgentLib Class Usage Examples

Méthodes publiques

Méthode Description
AddKey ( ISshKey key ) : void
AnswerMessage ( Stream messageStream, Process process = null ) : void

Answers the message.

code based on winpgnt.c from PuTTY source code

Dispose ( ) : void
ListKeys ( SshVersion aVersion ) : ICollection
Lock ( byte aPassphrase ) : void
RemoveAllKeys ( SshVersion aVersion ) : void
RemoveKey ( ISshKey key ) : void
Unlock ( byte aPassphrase ) : void

Méthodes protégées

Méthode Description
Agent ( ) : System

Private Methods

Méthode Description
FireKeyAdded ( ISshKey key ) : void
FireKeyRemoved ( ISshKey key ) : void
FireLocked ( ) : void

Fires lock event for listeners

Method Details

AddKey() public méthode

public AddKey ( ISshKey key ) : void
key ISshKey
Résultat void

Agent() protected méthode

protected Agent ( ) : System
Résultat System

AnswerMessage() public méthode

Answers the message.
code based on winpgnt.c from PuTTY source code
public AnswerMessage ( Stream messageStream, Process process = null ) : void
messageStream Stream Message stream.
process System.Diagnostics.Process The calling process or null if the process /// could not be obtained.
Résultat void

Dispose() public abstract méthode

public abstract Dispose ( ) : void
Résultat void

ListKeys() public méthode

public ListKeys ( SshVersion aVersion ) : ICollection
aVersion SshVersion
Résultat ICollection

Lock() public méthode

public Lock ( byte aPassphrase ) : void
aPassphrase byte
Résultat void

RemoveAllKeys() public méthode

public RemoveAllKeys ( SshVersion aVersion ) : void
aVersion SshVersion
Résultat void

RemoveKey() public méthode

public RemoveKey ( ISshKey key ) : void
key ISshKey
Résultat void

Unlock() public méthode

public Unlock ( byte aPassphrase ) : void
aPassphrase byte
Résultat void