C# Class dlech.SshAgentLib.AgentClient

Inheritance: IAgent
Show file Open project: dlech/SshAgentLib

Public Methods

Method 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

Method 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 method

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

AddKey() public method

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
return void

ListKeys() public method

public ListKeys ( SshVersion aVersion ) : ICollection
aVersion SshVersion
return ICollection

Lock() public method

public Lock ( byte aPassphrase ) : void
aPassphrase byte
return void

RemoveAllKeys() public method

public RemoveAllKeys ( SshVersion version ) : void
version SshVersion
return void

RemoveKey() public method

Remove key from SSH agent
public RemoveKey ( ISshKey key ) : void
key ISshKey The key to remove
return void

SendMessage() public abstract method

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
return byte[]

SignRequest() public method

public SignRequest ( ISshKey aKey, byte aSignData ) : byte[]
aKey ISshKey
aSignData byte
return byte[]

Unlock() public method

public Unlock ( byte aPassphrase ) : void
aPassphrase byte
return void