CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
key_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/collections/ilist.h>
8#include <system/collections/ienumerator.h>
9#include <system/collections/ienumerable.h>
10#include <security/cryptography/xml/key_info_clause.h>
11#include <cstdint>
12
13namespace System { namespace Security { namespace Cryptography { namespace Xml { class Signature; } } } }
14
15namespace System { namespace Security { namespace Cryptography { namespace Xml {
16
21class ASPOSECPP_SHARED_CLASS KeyInfo : public Collections::Generic::IEnumerable<SharedPtr<Xml::KeyInfoClause>>
22{
23 typedef KeyInfo ThisType;
24 typedef IEnumerable<SharedPtr<Xml::KeyInfoClause>> BaseType;
25
26 typedef BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29 friend class Signature;
30
31public:
32
33 ASPOSECPP_SHARED_API int32_t get_Count();
34
35 ASPOSECPP_SHARED_API KeyInfo();
36
37 ASPOSECPP_SHARED_API void AddClause(SharedPtr<KeyInfoClause> clause);
39
41 ASPOSECPP_SHARED_API System::Details::VirtualizedIteratorBase<SharedPtr<Xml::KeyInfoClause>>* virtualizeBeginIterator() override;
43 ASPOSECPP_SHARED_API System::Details::VirtualizedIteratorBase<SharedPtr<Xml::KeyInfoClause>>* virtualizeEndIterator() override;
45 ASPOSECPP_SHARED_API System::Details::VirtualizedIteratorBase<SharedPtr<Xml::KeyInfoClause>>* virtualizeBeginConstIterator() const override;
47 ASPOSECPP_SHARED_API System::Details::VirtualizedIteratorBase<SharedPtr<Xml::KeyInfoClause>>* virtualizeEndConstIterator() const override;
48
49protected:
50
53
54 virtual ASPOSECPP_SHARED_API ~KeyInfo();
55
56#ifdef ASPOSE_GET_SHARED_MEMBERS
57 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
58#endif
59
60private:
61
62 String _id;
64
65};
66
67}}}} // System::Security::Cryptography::Xml
Interface of object providing enumerator on contained elements.
Definition: ienumerable.h:25
Represents the KeyInfo element of an XML digital signature or an XML encryption. Objects of this clas...
Definition: key_info.h:22
System::Details::VirtualizedIteratorBase< SharedPtr< Xml::KeyInfoClause > > * virtualizeEndIterator() override
Gets the implementation of end iterator for the current container.
System::Details::VirtualizedIteratorBase< SharedPtr< Xml::KeyInfoClause > > * virtualizeEndConstIterator() const override
Gets the implementation of end const iterator for the current container.
System::Details::VirtualizedIteratorBase< SharedPtr< Xml::KeyInfoClause > > * virtualizeBeginConstIterator() const override
Gets the implementation of begin const iterator for the current container.
SharedPtr< System::Xml::XmlElement > GetXml(SharedPtr< System::Xml::XmlDocument > xmlDocument)
void AddClause(SharedPtr< KeyInfoClause > clause)
System::Details::VirtualizedIteratorBase< SharedPtr< Xml::KeyInfoClause > > * virtualizeBeginIterator() override
Gets the implementation of begin iterator for the current container.
SharedPtr< Collections::Generic::IEnumerator< SharedPtr< KeyInfoClause > > > GetEnumerator() override
Gets enumerator.
void LoadXml(SharedPtr< System::Xml::XmlElement > value)
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
@ Signature
Asymmetric exchange key.
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9