AusweisApp
 
Lade ...
Suche ...
Keine Treffer
StatePreVerification.h
gehe zur Dokumentation dieser Datei
1
4
5/*
6 * \brief Performs the pre-verification of cvcs. If the pre-verification succeeds the cvc chain is set to the authentication model.
7 */
8
9#pragma once
10
11#include "AbstractState.h"
13#include "context/AuthContext.h"
14
15#include <QDateTime>
16
17
18namespace governikus
19{
20
21class StatePreVerification
22 : public AbstractState
23 , public GenericContextContainer<AuthContext>
24{
25 Q_OBJECT
26 friend class StateBuilder;
27 friend class ::test_StatePreVerification;
28
29 private:
30 const QList<QSharedPointer<const CVCertificate>> mTrustedCvcas;
31 const QDateTime mValidationDateTime;
32
33 explicit StatePreVerification(const QSharedPointer<WorkflowContext>& pContext);
34 void run() override;
35
36 bool isValid(const QList<QSharedPointer<const CVCertificate>>& pCertificates) const;
37 void saveCvcaLinkCertificates(const QList<QSharedPointer<const CVCertificate>>& pCertificates) const;
38};
39
40} // namespace governikus
AbstractState(const QSharedPointer< WorkflowContext > &pContext)
Definition AbstractState.cpp:22
GenericContextContainer(const QSharedPointer< WorkflowContext > &pContext)
Definition GenericContextContainer.h:27
friend class StateBuilder
Definition StatePreVerification.h:26
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17