AusweisApp
Lade ...
Suche ...
Keine Treffer
MobileEIDTypeInfo.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11
12#include "SecurityInfo.h"
13
14
15namespace governikus
16{
17
30{
31 ASN1_OBJECT* mProtocol;
32 ASN1_TYPE* mRequiredData;
33};
34DECLARE_ASN1_FUNCTIONS(mobileeidtypeinfo_st)
36
37
38/*
39 * Wrapper for structure mobileeidtypeinfo_st.
40 */
42 : public SecurityInfo
43{
44 friend class QSharedPointer<const MobileEIDTypeInfo>;
45
46 private:
47 const QSharedPointer<const mobileeidtypeinfo_st> mDelegate;
48
49 explicit MobileEIDTypeInfo(const QSharedPointer<const mobileeidtypeinfo_st>& pDelegate);
50 [[nodiscard]] ASN1_OBJECT* getProtocolObjectIdentifier() const override;
51 static bool acceptsProtocol(const ASN1_OBJECT* pObjectIdentifier);
52
53 public:
54 static QSharedPointer<const MobileEIDTypeInfo> decode(const QByteArray& pBytes);
55 [[nodiscard]] QByteArray encode() const;
56};
57
58
59inline QDebug operator<<(QDebug pDbg, const QSharedPointer<const MobileEIDTypeInfo>& pMobileEIDTypeInfo)
60{
61 QDebugStateSaver saver(pDbg);
62 pDbg.nospace().noquote() << pMobileEIDTypeInfo->getOid();
63 return pDbg;
64}
65
66
67} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition: ASN1TemplateUtil.h:178
Definition: MobileEIDTypeInfo.h:43
Definition: SecurityInfo.h:46
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16
QByteArray encode() const
QDebug operator<<(QDebug pDbg, const CommandApdu &pCommandApdu)
Definition: CommandApdu.h:94
Definition: MobileEIDTypeInfo.h:30
ASN1_TYPE * mRequiredData
Definition: MobileEIDTypeInfo.h:32
ASN1_OBJECT * mProtocol
Definition: MobileEIDTypeInfo.h:31