AusweisApp
Lade ...
Suche ...
Keine Treffer
MobileEIDTypeInfo.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7
8#include "SecurityInfo.h"
9
10
11namespace governikus
12{
13
32
33
34/*
35 * Wrapper for structure mobileeidtypeinfo_st.
36 */
39{
41
42 private:
44
46 [[nodiscard]] ASN1_OBJECT* getProtocolObjectIdentifier() const override;
47 static bool acceptsProtocol(const ASN1_OBJECT* pObjectIdentifier);
48
49 public:
50 static QSharedPointer<const MobileEIDTypeInfo> decode(const QByteArray& pBytes);
51 [[nodiscard]] QByteArray encode() const;
52};
53
54
55inline QDebug operator<<(QDebug pDbg, const QSharedPointer<const MobileEIDTypeInfo>& pMobileEIDTypeInfo)
56{
58 pDbg.nospace().noquote() << pMobileEIDTypeInfo->getOid();
59 return pDbg;
60}
61
62
63} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition ASN1TemplateUtil.h:175
Definition MobileEIDTypeInfo.h:39
Definition SecurityInfo.h:42
Defines the AccessRight and AccessRole enum.
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:112
QDebug operator<<(QDebug pDbg, const CommandApdu &pCommandApdu)
Definition CommandApdu.h:96
Definition MobileEIDTypeInfo.h:26
ASN1_TYPE * mRequiredData
Definition MobileEIDTypeInfo.h:28
ASN1_OBJECT * mProtocol
Definition MobileEIDTypeInfo.h:27