15#include <QCoreApplication>
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;
#define defineEnumType(enumName,...)
Definition EnumHelper.h:85
Definition SelfAuthenticationData.h:61
QList< QPair< QString, QString > > OrderedSelfData
Definition SelfAuthenticationData.h:63
~SelfAuthenticationData()=default
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
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114
ArtisticName
Definition AccessRoleAndRight.h:82
AgeVerification
Definition AccessRoleAndRight.h:91
PlaceOfBirth
Definition AccessRoleAndRight.h:79