Table of Contents

Class CertificateHostAlgorithm

Namespace
Renci.SshNet.Security
Assembly
Renci.SshNet.dll

Implements certificate support for host algorithm.

public class CertificateHostAlgorithm : KeyHostAlgorithm

Inheritance

Inherited Members

Constructors

CertificateHostAlgorithm(string, Key, Certificate)

Initializes a new instance of the Renci.SshNet.Security.CertificateHostAlgorithm class.

public CertificateHostAlgorithm(string name, Key privateKey, Certificate certificate)

Parameters

name string

The algorithm identifier.

privateKey Key

The private key used for this host algorithm.

certificate Certificate

The certificate which certifies privateKey.

CertificateHostAlgorithm(string, Key, Certificate, DigitalSignature)

Initializes a new instance of the Renci.SshNet.Security.CertificateHostAlgorithm class.

public CertificateHostAlgorithm(string name, Key privateKey, Certificate certificate, DigitalSignature digitalSignature)

Parameters

name string

The algorithm identifier.

privateKey Key

The private key used for this host algorithm.

certificate Certificate

The certificate which certifies privateKey.

digitalSignature DigitalSignature
Gets the signature implementation used in this host key algorithm.

CertificateHostAlgorithm(string, Certificate, IReadOnlyDictionary<string, Func<byte[], KeyHostAlgorithm>>)

Initializes a new instance of the Renci.SshNet.Security.CertificateHostAlgorithm class.

public CertificateHostAlgorithm(string name, Certificate certificate, IReadOnlyDictionary<string, Func<byte[], KeyHostAlgorithm>> keyAlgorithms)

Parameters

name string

The algorithm identifier.

certificate Certificate

The certificate.

keyAlgorithms IReadOnlyDictionary<string, Func<byte[], KeyHostAlgorithm>>
The Renci.SshNet.Security.KeyHostAlgorithm factories which may be used in order to verify the signature within the certificate.

CertificateHostAlgorithm(string, Certificate, DigitalSignature, IReadOnlyDictionary<string, Func<byte[], KeyHostAlgorithm>>)

Initializes a new instance of the Renci.SshNet.Security.CertificateHostAlgorithm class.

public CertificateHostAlgorithm(string name, Certificate certificate, DigitalSignature digitalSignature, IReadOnlyDictionary<string, Func<byte[], KeyHostAlgorithm>> keyAlgorithms)

Parameters

name string

The algorithm identifier.

certificate Certificate

The certificate.

digitalSignature DigitalSignature
Gets the signature implementation used in this host key algorithm.
keyAlgorithms IReadOnlyDictionary<string, Func<byte[], KeyHostAlgorithm>>
The Renci.SshNet.Security.KeyHostAlgorithm factories which may be used in order to verify the signature within the certificate.

Properties

Certificate

Gets certificate used in this host key algorithm.

public Certificate Certificate { get; }

Property Value

Certificate

Data

Gets the encoded bytes of the certificate.

public override byte[] Data { get; }

Property Value

byte[]

Methods

Sign(byte[])

Signs and encodes the specified data.

public override byte[] Sign(byte[] data)

Parameters

data byte[]

The data to be signed.

Returns

byte[]

The encoded signature.