Class CertificateHostAlgorithm
- Namespace
- Renci.SshNet.Security
- Assembly
- Renci.SshNet.dll
Implements certificate support for host algorithm.
public class CertificateHostAlgorithm : KeyHostAlgorithmInheritance
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
namestring-
The algorithm identifier.
privateKeyKey-
The private key used for this host algorithm.
certificateCertificate-
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
namestring-
The algorithm identifier.
privateKeyKey-
The private key used for this host algorithm.
certificateCertificate-
The certificate which certifies
privateKey. digitalSignatureDigitalSignature-
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
namestring-
The algorithm identifier.
certificateCertificate-
The certificate.
keyAlgorithmsIReadOnlyDictionary<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
namestring-
The algorithm identifier.
certificateCertificate-
The certificate.
digitalSignatureDigitalSignature-
Gets the signature implementation used in this host key algorithm. keyAlgorithmsIReadOnlyDictionary<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
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
databyte[]-
The data to be signed.
Returns
- byte[]
-
The encoded signature.