AusweisApp
Lade ...
Suche ...
Keine Treffer
ApplicationTemplates.h
gehe zur Dokumentation dieser Datei
10#pragma once
11
12#include "ApplicationTemplate.h"
13
14#include <QByteArray>
15#include <QList>
16#include <QSharedPointer>
17
18
19namespace governikus
20{
21
31
33{
36
37 private:
38 const QByteArray mContentBytes;
39 const QList<QSharedPointer<const ApplicationTemplate>> mApplicationTemplates;
40
43
44 static QByteArray buildAsn1LengthField(unsigned int pLength);
45
46 public:
47 static QSharedPointer<ApplicationTemplates> decode(const QByteArray& pBytes);
48
49 bool contains(const QByteArray& pIdentifier) const;
50
51 [[nodiscard]] const QByteArray& getContentBytes() const;
52 [[nodiscard]] const QList<QSharedPointer<const ApplicationTemplate>>& getApplicationTemplates() const;
53 [[nodiscard]] qsizetype count() const;
54};
55
56
57} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition ASN1TemplateUtil.h:177
Definition ApplicationTemplates.h:33
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
STACK_OF(ApplicationTemplate) ApplicationTemplatesInternal
EF.DIR = ApplicationTemplates ::= SET OF ApplicationTemplate.
Definition ApplicationTemplates.h:28
struct application_template_st { ASN1_OCTET_STRING *mApplicationIdentifier; ASN1_PRINTABLESTRING *mApplicationLabel; ASN1_OCTET_STRING *mFileReference; ASN1_OCTET_STRING *mCommandApdu; ASN1_OCTET_STRING *mDiscretionaryData; ASN1_OCTET_STRING *mUniformResourceLocator; static QSharedPointer< application_template_st > decode(const QByteArray &pBytes); ~application_template_st();[[nodiscard]] QByteArray getAid() const ;} ApplicationTemplate
Definition ApplicationTemplate.h:37
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114