Click or drag to resize
MimeKit

BouncyCastleCertificateExtensionsGetEncryptionAlgorithms Method

Get the encryption algorithms that can be used with an X.509 certificate.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static EncryptionAlgorithm[] GetEncryptionAlgorithms(
	this X509Certificate certificate
)

Parameters

certificate  X509Certificate
The X.509 certificate.

Return Value

EncryptionAlgorithm
The encryption algorithms.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type X509Certificate. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
Remarks

Scans the X.509 certificate for the S/MIME capabilities extension. If found, the supported encryption algorithms will be decoded and returned.

If no extension can be found, the TripleDes algorithm is returned.

See Also