CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
signed_info.h
1#pragma once
2
3#include <xml/xml_element.h>
4#include <xml/xml_document.h>
5#include <system/string.h>
6#include <system/shared_ptr.h>
7#include <system/object.h>
8#include <system/collections/ilist.h>
9
10namespace System { namespace Security { namespace Cryptography { namespace Xml { class Signature; } } } }
11namespace System { namespace Security { namespace Cryptography { namespace Xml { class SignedXml; } } } }
12namespace System { namespace Security { namespace Cryptography { namespace Xml { class SignedXmlDebugLog; } } } }
13namespace Tests { class SignedXmlTest; }
14namespace System { namespace Security { namespace Cryptography { namespace Xml { class Reference; } } } }
15namespace System { namespace Security { namespace Cryptography { namespace Xml { class Transform; } } } }
16
17namespace System { namespace Security { namespace Cryptography { namespace Xml {
18
19namespace Details { struct SignedXmlImpl; }
20
25class ASPOSECPP_SHARED_CLASS SignedInfo : public Object
26{
27 typedef SignedInfo ThisType;
28 typedef Object BaseType;
29
30 typedef BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
31 ASPOSECPP_SHARED_RTTI_INFO_DECL();
32
33 friend class Signature;
34 friend class SignedXml;
35 friend class SignedXmlDebugLog;
36 friend struct Details::SignedXmlImpl;
37 friend class Tests::SignedXmlTest;
38
39public:
40 ASPOSECPP_SHARED_API String get_SignatureMethod();
41 ASPOSECPP_SHARED_API void set_SignatureMethod(String value);
42 ASPOSECPP_SHARED_API String get_CanonicalizationMethod();
43 ASPOSECPP_SHARED_API void set_CanonicalizationMethod(String value);
44
45protected:
49 void set_Id(String value);
55
57 MEMBER_FUNCTION_MAKE_OBJECT(SignedInfo, CODEPORTING_ARGS(), CODEPORTING_ARGS());
58
63#ifdef ASPOSE_GET_SHARED_MEMBERS
64 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
65#endif
66
67private:
68 String _id;
69 String _canonicalizationMethod;
70 String _signatureMethod;
71 String _signatureLength;
74 WeakPtr<SignedXml> _signedXml;
75 SharedPtr<Transform> _canonicalizationMethodTransform;
76};
77
78}}}} // 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
Represents the 'SignedInfo' element of the XML signature. Objects of this class should only be alloca...
Definition: signed_info.h:26
SharedPtr< System::Xml::XmlElement > GetXml()
SharedPtr< Transform > get_CanonicalizationMethodObject()
void AddReference(SharedPtr< Reference > reference)
void set_SignedXml(SharedPtr< SignedXml > value)
void LoadXml(SharedPtr< System::Xml::XmlElement > value)
SharedPtr< Collections::Generic::IList< SharedPtr< Reference > > > get_References()
SharedPtr< System::Xml::XmlElement > GetXml(SharedPtr< System::Xml::XmlDocument > document)
Used for XML signing and verification. Objects of this class should only be allocated using System::M...
Definition: signed_xml.h:30
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
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: weak_ptr.h:18
@ Signature
Asymmetric exchange key.
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9