CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
rsakey_value.h
1#pragma once
2
3#include <system/string.h>
4#include <security/cryptography/rsa.h>
5#include <security/cryptography/xml/key_info_clause.h>
6
7namespace System { namespace Security { namespace Cryptography { namespace Xml {
8
13class ASPOSECPP_SHARED_CLASS RSAKeyValue : public KeyInfoClause
14{
15 typedef RSAKeyValue ThisType;
16 typedef KeyInfoClause BaseType;
17
18 typedef BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
19 ASPOSECPP_SHARED_RTTI_INFO_DECL();
20
21public:
22 ASPOSECPP_SHARED_API SharedPtr<RSA> get_Key();
23 ASPOSECPP_SHARED_API void set_Key(SharedPtr<RSA> value);
24
25 ASPOSECPP_SHARED_API RSAKeyValue();
26 ASPOSECPP_SHARED_API RSAKeyValue(SharedPtr<RSA> key);
27
28protected:
29 ASPOSECPP_SHARED_API SharedPtr<System::Xml::XmlElement> GetXml() override;
31 ASPOSECPP_SHARED_API void LoadXml(SharedPtr<System::Xml::XmlElement> value) override;
32#ifdef ASPOSE_GET_SHARED_MEMBERS
33 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
34#endif
35
36private:
37 SharedPtr<RSA> _key;
38 static const String KeyValueElementName;
39 static const String RSAKeyValueElementName;
40 static const String ModulusElementName;
41 static const String ExponentElementName;
42};
43
44}}}} // System::Security::Cryptography::Xml
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
All implementations of KeyInfo subelements must inherit this abstract class. Objects of this class sh...
Definition: key_info_clause.h:17
Represents the 'RSAKeyValue' element of the XML signature. Objects of this class should only be alloc...
Definition: rsakey_value.h:14
SharedPtr< System::Xml::XmlElement > GetXml() override
SharedPtr< System::Xml::XmlElement > GetXml(SharedPtr< System::Xml::XmlDocument > xmlDocument) override
void LoadXml(SharedPtr< System::Xml::XmlElement > value) override
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
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9