AusweisApp2
StatePreVerification.h
gehe zur Dokumentation dieser Datei
1 /*
2  * \brief Performs the pre-verification of cvcs. If the pre-verification succeeds the cvc chain is set to the authentication model.
3  *
4  * \copyright Copyright (c) 2014-2020 Governikus GmbH & Co. KG, Germany
5  */
6 
7 #pragma once
8 
9 #include "AbstractState.h"
10 #include "context/AuthContext.h"
12 
13 #include <QDateTime>
14 
15 
16 namespace governikus
17 {
18 
20  : public AbstractState
21  , public GenericContextContainer<AuthContext>
22 {
23  Q_OBJECT
24  friend class StateBuilder;
25  friend class ::test_StatePreVerification;
26 
27  const QVector<QSharedPointer<const CVCertificate>> mTrustedCvcas;
28  const QDateTime mValidationDateTime;
29 
30  explicit StatePreVerification(const QSharedPointer<WorkflowContext>& pContext);
31  virtual void run() override;
32 
33  bool isValid(const QVector<QSharedPointer<const CVCertificate>>& pCertificates);
34  void saveCvcaLinkCertificates(const QVector<QSharedPointer<const CVCertificate>>& pCertificates);
35 };
36 
37 } // namespace governikus
Definition: AbstractState.h:20
Definition: GenericContextContainer.h:20
Definition: StateBuilder.h:18
Definition: StatePreVerification.h:22
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15