CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
x509_key_usage_flags.h
1
2#pragma once
3
4#include <cstdint>
5#include <system/details/enum_meta_info.h>
6#include <system/enum_helpers.h>
7
8namespace System { namespace Security { namespace Cryptography { namespace X509Certificates {
9
11enum class X509KeyUsageFlags : int32_t
12{
14 None = 0x0000,
16 EncipherOnly = 0x0001,
18 CrlSign = 0x0002,
20 KeyCertSign = 0x0004,
22 KeyAgreement = 0x0008,
24 DataEncipherment = 0x0010,
26 KeyEncipherment = 0x0020,
28 NonRepudiation = 0x0040,
30 DigitalSignature = 0x0080,
32 DecipherOnly = 0x8000,
33};
34
39DECLARE_USING_GLOBAL_OPERATORS
41}}}} // namespace System::Security::Cryptography::X509Certificates
42
44DECLARE_USING_ENUM_OPERATORS(System::Security::Cryptography::X509Certificates);
45
46template<>
47struct EnumMetaInfo<System::Security::Cryptography::X509Certificates::X509KeyUsageFlags>
48{
49 typedef void Flags;
50 static ASPOSECPP_SHARED_API const std::array<std::pair<System::Security::Cryptography::X509Certificates::X509KeyUsageFlags, const char16_t*>, 10>& values();
51};
X509KeyUsageFlags
Defines how the certificate key can be used.
Definition: x509_key_usage_flags.h:12
@ DigitalSignature
Key can be used as a digital signature.
@ KeyAgreement
Key can be used to determine key agreement.
@ CrlSign
Key can be used to sign a certificate revocation list.
Definition: db_command.h:9