2017-07-03 09:33:28 +02:00
|
|
|
/*!
|
|
|
|
* \brief Helper to use AuthContext in an easy way.
|
|
|
|
*
|
2019-05-22 10:08:38 +02:00
|
|
|
* \copyright Copyright (c) 2016-2019 Governikus GmbH & Co. KG, Germany
|
2017-07-03 09:33:28 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "context/AuthContext.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace governikus
|
|
|
|
{
|
|
|
|
|
|
|
|
class TestAuthContext
|
|
|
|
: public AuthContext
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
QSharedPointer<DIDAuthenticateEAC1> mDidAuthenticateEac1;
|
2019-09-30 17:22:19 +02:00
|
|
|
QSharedPointer<DIDAuthenticateEAC2> mDidAuthenticateEac2;
|
2017-07-03 09:33:28 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
TestAuthContext(ActivationContext* pActivationContext, const QString& pFileName);
|
|
|
|
virtual ~TestAuthContext();
|
|
|
|
|
|
|
|
void setRequiredAccessRights(const QSet<AccessRight>& pAccessRights);
|
|
|
|
void setOptionalAccessRights(const QSet<AccessRight>& pAccessRights);
|
2019-09-30 17:22:19 +02:00
|
|
|
void addCvCertificate(const QSharedPointer<const CVCertificate>& pCvCertificate);
|
|
|
|
void clearCvCertificates();
|
|
|
|
void removeCvCertAt(int pPosition);
|
2017-07-03 09:33:28 +02:00
|
|
|
};
|
|
|
|
|
2019-01-03 15:06:22 +01:00
|
|
|
} // namespace governikus
|