C# Class dlech.SshAgentLib.AgentClient

Inheritance: IAgent
Afficher le fichier Open project: dlech/SshAgentLib

Méthodes publiques

Méthode Description
AddKey ( ISshKey key ) : void

Adds key to SSH agent

applies constraints in aKeys.Constraints, if any

AddKey ( ISshKey key, ICollection aConstraints ) : void

Adds key to SSH agent

ignores constraints in key.Constraints

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

Remove key from SSH agent

SendMessage ( byte aMessage ) : byte[]

Implementer should send the message to an SSH agent and return the reply

SignRequest ( ISshKey aKey, byte aSignData ) : byte[]
Unlock ( byte aPassphrase ) : void

Private Methods

Méthode Description
CreatePrivateKeyBlob ( ISshKey key ) : BlobBuilder
CreatePublicKeyBlob ( ISshKey aKey ) : BlobBuilder
FireKeyAdded ( ISshKey key ) : void
FireKeyRemoved ( ISshKey key ) : void
SendMessage ( BlobBuilder aBuilder ) : BlobParser
SendMessageAndCheckSuccess ( BlobBuilder aBuilder ) : void

Sends message to remote agent and checks that it returned SSH_AGENT_SUCCESS

Method Details

AddKey() public méthode

Adds key to SSH agent
applies constraints in aKeys.Constraints, if any
public AddKey ( ISshKey key ) : void
key ISshKey the key to add
Résultat void

AddKey() public méthode

Adds key to SSH agent
ignores constraints in key.Constraints
public AddKey ( ISshKey key, ICollection aConstraints ) : void
key ISshKey the key to add
aConstraints ICollection constraints to apply
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 version ) : void
version SshVersion
Résultat void

RemoveKey() public méthode

Remove key from SSH agent
public RemoveKey ( ISshKey key ) : void
key ISshKey The key to remove
Résultat void

SendMessage() public abstract méthode

Implementer should send the message to an SSH agent and return the reply
public abstract SendMessage ( byte aMessage ) : byte[]
aMessage byte The message to send
Résultat byte[]

SignRequest() public méthode

public SignRequest ( ISshKey aKey, byte aSignData ) : byte[]
aKey ISshKey
aSignData byte
Résultat byte[]

Unlock() public méthode

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