AusweisApp
Lade ...
Suche ...
Keine Treffer
PaosCreator.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "paos/ResponseType.h"
12
13#include <QXmlStreamWriter>
14
15namespace governikus
16{
17
19{
21
22 public:
23 enum class Namespace
24 {
26 };
27
28 private:
29 static const QMap<Namespace, QString> mNamespacePrefix;
30 static const QMap<Namespace, QString> mNamespace;
31
32 QByteArray mContent;
33 QString mRelatedMessageId;
34 QXmlStreamWriter mWriter;
35
36 void createEnvelopeElement();
37 void createHeaderElement();
38
39 protected:
40 void writeTextElement(const QString& pQualifiedName, const QByteArray& pText);
42
44
46 virtual ~PaosCreator();
47
48 public:
56
57 void setRelatedMessageId(const QString& pId);
58 [[nodiscard]] static QString getNamespace(Namespace pPrefix);
59 [[nodiscard]] static QString getNamespacePrefix(Namespace pPrefix, const QString& pSuffix = QString());
60 [[nodiscard]] static QString getNamespaceType(Namespace pPrefix, const QString& pType);
61};
62
63} // namespace governikus
Definition PaosCreator.h:19
void setRelatedMessageId(const QString &pId)
Definition PaosCreator.cpp:97
QByteArray marshall()
Creates an XML structure of underlying information. Be aware that this method will create the structu...
Definition PaosCreator.cpp:87
void createResultElement(const ResponseType &pResponse)
Definition PaosCreator.cpp:177
static QString getNamespacePrefix(Namespace pPrefix, const QString &pSuffix=QString())
Definition PaosCreator.cpp:64
virtual void createBodyElement(QXmlStreamWriter &pWriter)=0
void writeTextElement(const QString &pQualifiedName, const QByteArray &pText)
Definition PaosCreator.cpp:145
static QString getNamespaceType(Namespace pPrefix, const QString &pType)
Definition PaosCreator.cpp:56
Namespace
Definition PaosCreator.h:24
static QString getNamespace(Namespace pPrefix)
Definition PaosCreator.cpp:50
PaosCreator()
Definition PaosCreator.cpp:38
Definition ResponseType.h:22
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114