CertificateSignatureAlgorithm Property |
Gets the information about cryptographic algorithm used to sign the certificate.
Namespace: MailBee.SecurityAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Algorithm SignatureAlgorithm { get; }
Public ReadOnly Property SignatureAlgorithm As Algorithm
Get
Property Value
Type:
AlgorithmObject of
Algorithm class representing information about the signature algorithm.
Examples This sample loads a certificate from the specified file and displays information about it.
using MailBee.Security;
Certificate cert = new Certificate(@"C:\Temp\certificate.cer", CertFileType.Cer, null);
Console.WriteLine("Key algorithm name: " + cert.SignatureAlgorithm.Name);
Console.WriteLine("Key algorithm OID: " + cert.SignatureAlgorithm.Oid);
Console.WriteLine("Key algorithm ID: " + cert.SignatureAlgorithm.ID);
Console.WriteLine("Key algorithm bit length: " + cert.SignatureAlgorithm.BitLength);
Imports MailBee.Security
Dim cert As Certificate = New Certificate("C:\Temp\certificate.cer", CertFileType.Cer, Nothing)
Console.WriteLine("Key algorithm name: " & cert.SignatureAlgorithm.Name)
Console.WriteLine("Key algorithm OID: " & cert.SignatureAlgorithm.Oid)
Console.WriteLine("Key algorithm ID: " & cert.SignatureAlgorithm.ID.ToString())
Console.WriteLine("Key algorithm bit length: " & cert.SignatureAlgorithm.BitLength.ToString())
See Also