CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
x509_key_storage_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 X509KeyStorageFlags : int32_t
12{
14 DefaultKeySet = 0,
16 UserKeySet = 1,
18 MachineKeySet = 2,
20 Exportable = 4,
22 UserProtected = 8,
24 PersistKeySet = 16
25};
26
31DECLARE_USING_GLOBAL_OPERATORS
33}}}} // namespace System::Security::Cryptography::X509Certificates
34
36DECLARE_USING_ENUM_OPERATORS(System::Security::Cryptography::X509Certificates);
37
38template<>
39struct EnumMetaInfo<System::Security::Cryptography::X509Certificates::X509KeyStorageFlags>
40{
41 typedef void Flags;
42 static ASPOSECPP_SHARED_API const std::array<std::pair<System::Security::Cryptography::X509Certificates::X509KeyStorageFlags, const char16_t*>, 6>& values();
43};
X509KeyStorageFlags
Defines how to store key.
Definition: x509_key_storage_flags.h:12
@ UserKeySet
Use user-associated store instead of machine-local one.
@ PersistKeySet
The key is persisted when importing certificate.
@ MachineKeySet
Use local machine store instead of user one.
Definition: db_command.h:9