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

Показать файл Открыть проект

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

Метод Описание
FormatSignature ( this key, byte signature ) : byte[]
Get ( this aKeyList, SshVersion aVersion, byte aPublicKeyBlob ) : ISshKey
GetAuthorizedKeyString ( this aKey ) : string
GetMD5Fingerprint ( this aKey ) : byte[]
GetPublicKeyBlob ( this aKey ) : byte[]

Gets OpenSsh formatted bytes from public key

Currently only supports RSA and DSA public keys

GetSigner ( this key ) : ISigner
HasConstraint ( this aKey, Agent aType ) : bool
addConfirmConstraint ( this aKey ) : void

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM constraint to key

addLifetimeConstraint ( this aKey, uint aLifetime ) : void

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_LIFETIME constraint to key

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

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

public static FormatSignature ( this key, byte signature ) : byte[]
key this
signature byte
Результат byte[]

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

public static Get ( this aKeyList, SshVersion aVersion, byte aPublicKeyBlob ) : ISshKey
aKeyList this
aVersion SshVersion
aPublicKeyBlob byte
Результат ISshKey

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

public static GetAuthorizedKeyString ( this aKey ) : string
aKey this
Результат string

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

public static GetMD5Fingerprint ( this aKey ) : byte[]
aKey this
Результат byte[]

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

Gets OpenSsh formatted bytes from public key
Currently only supports RSA and DSA public keys
/// AsymmetricAlgorithm is not supported ///
public static GetPublicKeyBlob ( this aKey ) : byte[]
aKey this
Результат byte[]

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

public static GetSigner ( this key ) : ISigner
key this
Результат ISigner

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

public static HasConstraint ( this aKey, Agent aType ) : bool
aKey this
aType Agent
Результат bool

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

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM constraint to key
public static addConfirmConstraint ( this aKey ) : void
aKey this
Результат void

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

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_LIFETIME constraint to key
public static addLifetimeConstraint ( this aKey, uint aLifetime ) : void
aKey this
aLifetime uint
Результат void