 | BouncyCastleCertificateExtensionsGetKeyUsageFlags(Boolean) Method |
Generates an X509KeyUsageFlags value based on the provided usage bit array.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic 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