15#include <QCoreApplication>
57 PlaceOfResidenceNoPlaceInfo)
69 Q_DECLARE_TR_FUNCTIONS(governikus::SelfData)
72 bool parse(
const QByteArray& pData);
73 bool parseOperationsAllowedByUser(
const QJsonObject& pObject);
74 bool parsePersonalData(
const QJsonObject& pObject);
75 void parseStructuredPlace(
const QJsonObject& pObjectm, SelfAuthDataPermission pPermission);
76 bool tryToInsertChild(
const QJsonValue& pValue, SelfAuthData pAuthData);
77 void add(
OrderedSelfData& pSelfData,
const QString& pGroupName,
const QString& pGroupValue)
const;
79 static QString formatDate(
const QString& pDate);
83 const QDateTime mDateTime;
84 QMap<SelfAuthData, SelfAuthDataPermission> mOperationsAllowed;
85 QMap<SelfAuthData, QString> mSelfAuthData;
87 explicit SelfData(
const QByteArray& pData);
88 QString
getValue(SelfAuthData pData)
const;
92 QSharedDataPointer<SelfData> d;
101 [[nodiscard]]
bool isValid()
const;
102 [[nodiscard]] QString
getValue(SelfAuthData pData)
const;
103 [[nodiscard]]
const QDateTime&
getDateTime()
const;
#define defineEnumType(enumName,...)
Definition EnumHelper.h:85
Definition SelfAuthenticationData.h:61
SelfAuthenticationData(const QByteArray &pData=QByteArray())
Definition SelfAuthenticationData.cpp:18
QString getValue(SelfAuthData pData) const
Definition SelfAuthenticationData.cpp:30
QList< QPair< QString, QString > > OrderedSelfData
Definition SelfAuthenticationData.h:63
const QDateTime & getDateTime() const
Definition SelfAuthenticationData.cpp:36
bool isValid() const
Definition SelfAuthenticationData.cpp:24
~SelfAuthenticationData()=default
OrderedSelfData getOrderedSelfData() const
Definition SelfAuthenticationData.cpp:42
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
UNKNOWN
Definition ResponseApdu.h:65
DateOfExpiry
Definition SelfAuthenticationData.h:38
RestrictedID
Definition SelfAuthenticationData.h:49
BirthName
Definition AccessRoleAndRight.h:77
GivenNames
Definition AccessRoleAndRight.h:84
IssuingState
Definition SelfAuthenticationData.h:37
PlaceOfResidenceCity
Definition SelfAuthenticationData.h:54
PlaceOfResidence
Definition SelfAuthenticationData.h:46
PlaceOfResidenceCountry
Definition SelfAuthenticationData.h:55
PlaceOfResidenceStreet
Definition SelfAuthenticationData.h:53
DateOfBirth
Definition AccessRoleAndRight.h:80
FamilyNames
Definition SelfAuthenticationData.h:40
ResidencePermitI
Definition AccessRoleAndRight.h:74
AcademicTitle
Definition SelfAuthenticationData.h:42
Nationality
Definition AccessRoleAndRight.h:78
PlaceOfResidenceZipCode
Definition SelfAuthenticationData.h:56
PlaceVerification
Definition SelfAuthenticationData.h:51
DocumentType
Definition AccessRoleAndRight.h:87
ArtisticName
Definition AccessRoleAndRight.h:82
AgeVerification
Definition AccessRoleAndRight.h:91
PlaceOfBirth
Definition AccessRoleAndRight.h:79