Click or drag to resize
MimeKit

BouncyCastleCertificateExtensionsGetKeyUsageFlags(Boolean) Method

Generates an X509KeyUsageFlags value based on the provided usage bit array.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
public static X509KeyUsageFlags GetKeyUsageFlags(
	bool[] usage
)

Parameters

usage  Boolean
A boolean array representing the key usage bits. Each index corresponds to a specific value defined by X509KeyUsageBits

Return Value

X509KeyUsageFlags
An X509KeyUsageFlags value that represents the combined key usage flags.
Remarks
If the usage array is null, all key usage flags are considered enabled by returning a None
See Also