C# Класс dlech.SshAgentLib.AgentClient

Наследование: IAgent
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddKey() публичный Метод

Adds key to SSH agent
applies constraints in aKeys.Constraints, if any
public AddKey ( ISshKey key ) : void
key ISshKey the key to add
Результат void

AddKey() публичный Метод

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
Результат void

ListKeys() публичный Метод

public ListKeys ( SshVersion aVersion ) : ICollection
aVersion SshVersion
Результат ICollection

Lock() публичный Метод

public Lock ( byte aPassphrase ) : void
aPassphrase byte
Результат void

RemoveAllKeys() публичный Метод

public RemoveAllKeys ( SshVersion version ) : void
version SshVersion
Результат void

RemoveKey() публичный Метод

Remove key from SSH agent
public RemoveKey ( ISshKey key ) : void
key ISshKey The key to remove
Результат void

SendMessage() публичный абстрактный Метод

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
Результат byte[]

SignRequest() публичный Метод

public SignRequest ( ISshKey aKey, byte aSignData ) : byte[]
aKey ISshKey
aSignData byte
Результат byte[]

Unlock() публичный Метод

public Unlock ( byte aPassphrase ) : void
aPassphrase byte
Результат void