11#include <QCoreApplication>
65 Q_DECLARE_TR_FUNCTIONS(governikus::SelfData)
68 bool parse(
const QByteArray& pData);
69 bool parseOperationsAllowedByUser(
const QJsonObject& pObject);
70 bool parsePersonalData(
const QJsonObject& pObject);
71 void parseStructuredPlace(
const QJsonObject& pObjectm, SelfAuthDataPermission pPermission);
72 bool tryToInsertChild(
const QJsonValue& pValue, SelfAuthData pAuthData);
73 void add(
OrderedSelfData& pSelfData,
const QString& pGroupName,
const QString& pGroupValue)
const;
75 static QString formatDate(
const QString& pDate);
79 const QDateTime mDateTime;
80 QMap<SelfAuthData, SelfAuthDataPermission> mOperationsAllowed;
81 QMap<SelfAuthData, QString> mSelfAuthData;
83 explicit SelfData(
const QByteArray& pData);
84 QString getValue(SelfAuthData pData)
const;
#define defineEnumType(enumName,...)
Definition EnumHelper.h:81
Definition SelfAuthenticationData.h:57
QList< QPair< QString, QString > > OrderedSelfData
Definition SelfAuthenticationData.h:59
~SelfAuthenticationData()=default
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
UNKNOWN
Definition ResponseApdu.h:66
DateOfExpiry
Definition SelfAuthenticationData.h:34
RestrictedID
Definition SelfAuthenticationData.h:45
BirthName
Definition AccessRoleAndRight.h:78
GivenNames
Definition AccessRoleAndRight.h:85
IssuingState
Definition SelfAuthenticationData.h:33
PlaceOfResidenceCity
Definition SelfAuthenticationData.h:50
PlaceOfResidence
Definition SelfAuthenticationData.h:42
PlaceOfResidenceCountry
Definition SelfAuthenticationData.h:51
PlaceOfResidenceStreet
Definition SelfAuthenticationData.h:49
DateOfBirth
Definition AccessRoleAndRight.h:81
FamilyNames
Definition SelfAuthenticationData.h:36
ResidencePermitI
Definition AccessRoleAndRight.h:75
AcademicTitle
Definition SelfAuthenticationData.h:38
Nationality
Definition AccessRoleAndRight.h:79
PlaceOfResidenceZipCode
Definition SelfAuthenticationData.h:52
PlaceVerification
Definition SelfAuthenticationData.h:47
DocumentType
Definition AccessRoleAndRight.h:88
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:112
ArtisticName
Definition AccessRoleAndRight.h:83
AgeVerification
Definition AccessRoleAndRight.h:92
PlaceOfBirth
Definition AccessRoleAndRight.h:80