CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
csp_key_container_info.h
1
2#pragma once
3
4#include <system/object.h>
5#include <security/cryptography/csp_parameters.h>
6#include <security/cryptography/key_number.h>
7
8namespace System { namespace Security { namespace Cryptography {
9
11class ASPOSECPP_SHARED_CLASS CspKeyContainerInfo final : public virtual Object
12{
16 typedef Object BaseType;
18 ASPOSECPP_SHARED_RTTI_INFO_DECL();
19
20public:
23 ASPOSECPP_SHARED_API CspKeyContainerInfo(const SharedPtr<CspParameters>& parameters);
24
26 ASPOSECPP_SHARED_API bool get_Accessible() const;
27
29 ASPOSECPP_SHARED_API bool get_Exportable() const;
30
32 ASPOSECPP_SHARED_API bool get_HardwareDevice() const;
33
35 ASPOSECPP_SHARED_API String get_KeyContainerName() const;
36
38 ASPOSECPP_SHARED_API SharedPtr<KeyNumber> get_KeyNumber() const;
39
41 ASPOSECPP_SHARED_API bool get_MachineKeyStore() const;
42
44 ASPOSECPP_SHARED_API bool get_Protected() const;
45
47 ASPOSECPP_SHARED_API String get_ProviderName() const;
48
50 ASPOSECPP_SHARED_API int32_t get_ProviderType() const;
51
53 ASPOSECPP_SHARED_API bool get_RandomlyGenerated() const;
54
56 ASPOSECPP_SHARED_API bool get_Removable() const;
57
59 ASPOSECPP_SHARED_API String get_UniqueKeyContainerName() const;
60
61private:
62 ASPOSECPP_SHARED_API ~CspKeyContainerInfo();
63};
64
65}}} // namespace System::Security::Cryptography
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Additional information about a cryptographic key pair.
Definition: csp_key_container_info.h:12
bool get_Accessible() const
Gets a flag indicating whether a key in a container is accessible.
bool get_RandomlyGenerated() const
Gets a flag indicating whether a key was randomly generated.
String get_KeyContainerName() const
Gets a key container name.
bool get_Removable() const
Gets a flag indicating whether a key can be removed from a container.
bool get_HardwareDevice() const
Gets a flag indicating whether a key is a hardware key.
CspKeyContainerInfo(const SharedPtr< CspParameters > &parameters)
Consturctor.
SharedPtr< KeyNumber > get_KeyNumber() const
Gets a KeyNumber object.
String get_UniqueKeyContainerName() const
Gets a unique container name.
int32_t get_ProviderType() const
Gets provider type.
bool get_MachineKeyStore() const
Gets a flag indicating whether a key is loaded from machine key store.
bool get_Protected() const
Gets a flag indicating whether a key is protected from copy.
String get_ProviderName() const
Gets provider name.
bool get_Exportable() const
Gets a flag indicating whether a key can be exported from a container.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9