37 lines
965 B
C++
37 lines
965 B
C++
/*
|
|
* \brief Performs the pre-verification of cvcs. If the pre-verification succeeds the cvc chain is set to the authentication model.
|
|
*
|
|
* \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "context/AuthContext.h"
|
|
#include "states/AbstractGenericState.h"
|
|
|
|
#include <QDateTime>
|
|
|
|
class test_StatePreVerification;
|
|
|
|
namespace governikus
|
|
{
|
|
|
|
class StatePreVerification
|
|
: public AbstractGenericState<AuthContext>
|
|
{
|
|
Q_OBJECT
|
|
friend class StateBuilder;
|
|
friend class ::test_StatePreVerification;
|
|
|
|
const QVector<QSharedPointer<const CVCertificate> > mTrustedCvcas;
|
|
const QDateTime mValidationDateTime;
|
|
|
|
StatePreVerification(const QSharedPointer<WorkflowContext>& pContext);
|
|
virtual void run() override;
|
|
|
|
bool isValid(const QVector<QSharedPointer<const CVCertificate> >& pCertificates);
|
|
void saveCvcaLinkCertificates(const QVector<QSharedPointer<const CVCertificate> >& pCertificates);
|
|
};
|
|
|
|
} /* namespace governikus */
|