AusweisApp2
StateGetTcToken.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "AbstractState.h"
10 #include "context/AuthContext.h"
12 
13 #include <QNetworkReply>
14 #include <QPointer>
15 
17 
18 namespace governikus
19 {
20 
22  : public AbstractState
23  , public GenericContextContainer<AuthContext>
24 {
25  Q_OBJECT
26  friend class StateBuilder;
27  friend class ::test_StateGetTcToken;
28 
29  QPointer<QNetworkReply> mReply;
30 
31  void parseTcToken();
32  void sendRequest(const QUrl& pUrl);
33  bool isValidRedirectUrl(const QUrl& pUrl);
34  virtual void run() override;
35 
36  explicit StateGetTcToken(const QSharedPointer<WorkflowContext>& pContext);
37 
38  public:
39  virtual ~StateGetTcToken() override;
40 
41  private Q_SLOTS:
42  void onNetworkReply();
43  void onSslHandshakeDone();
44  void onSslErrors(const QList<QSslError>& pErrors);
45 };
46 
47 } // namespace governikus
governikus::GlobalStatus::Code::Workflow_TrustedChannel_Server_Format_Error
@ Workflow_TrustedChannel_Server_Format_Error
AuthContext.h
TlsChecker.h
governikus::TlsChecker::containsFatalError
static bool containsFatalError(QNetworkReply *pReply, const QList< QSslError > &pErrors)
Definition: TlsChecker.cpp:274
governikus::NetworkManager::toStatus
static GlobalStatus toStatus(const QNetworkReply *const pNetworkReply)
Definition: NetworkManager.cpp:226
governikus::GlobalStatus::Code::Workflow_TrustedChannel_No_Data_Received
@ Workflow_TrustedChannel_No_Data_Received
AppSettings.h
LogHandler.h
governikus::AbstractState
Definition: AbstractState.h:20
governikus::GenericContextContainer< AuthContext >::getContext
virtual QSharedPointer< AuthContext > getContext()
Definition: GenericContextContainer.h:34
governikus::AbstractState::fireContinue
void fireContinue()
Definition: moc_AbstractState.cpp:158
governikus::GlobalStatus::ExternalInformation::LAST_URL
@ LAST_URL
governikus::GlobalStatus::Code::Workflow_TrustedChannel_Establishment_Error
@ Workflow_TrustedChannel_Establishment_Error
governikus::AbstractState::fireAbort
void fireAbort()
Definition: moc_AbstractState.cpp:164
GenericContextContainer.h
NetworkManager.h
governikus::StateBuilder
Definition: StateBuilder.h:18
governikus::StateGetTcToken
Definition: StateGetTcToken.h:24
AbstractState.h
governikus::GlobalStatus::ExternalInformation::URL_SCHEME
@ URL_SCHEME
StateGetTcToken.h
http_parser.h
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::TlsChecker::hasValidEphemeralKeyLength
static bool hasValidEphemeralKeyLength(const QSslKey &pEphemeralServerKey)
Checks, whether the length of the ephemeral key is of sufficient length.
Definition: TlsChecker.cpp:62
governikus::GenericContextContainer
Definition: GenericContextContainer.h:20
governikus::NetworkManager::toTrustedChannelStatus
static GlobalStatus toTrustedChannelStatus(const QNetworkReply *const pNetworkReply)
Definition: NetworkManager.cpp:199
spawnMessageLogger
#define spawnMessageLogger(category)
Definition: LogHandler.h:21
governikus::TlsChecker::hasValidCertificateKeyLength
static bool hasValidCertificateKeyLength(const QSslCertificate &pCertificate)
Checks, whether the key length of the SSL certificate is of sufficient length.
Definition: TlsChecker.cpp:47
governikus::GlobalStatus
Definition: GlobalStatus.h:20
governikus::AbstractState::updateStatus
void updateStatus(const GlobalStatus &pStatus)
Definition: AbstractState.cpp:127
governikus::GlobalStatus::ExternalInformation::HTTP_STATUS_CODE
@ HTTP_STATUS_CODE
governikus::NetworkManager::getLoggedStatusCode
static int getLoggedStatusCode(const QNetworkReply *const pReply, const QMessageLogger &pLogger)
Definition: NetworkManager.cpp:298
governikus::StateGetTcToken::~StateGetTcToken
virtual ~StateGetTcToken() override
Definition: StateGetTcToken.cpp:32
governikus::TlsChecker::logSslConfig
static void logSslConfig(const QSslConfiguration &pCfg, const QMessageLogger &pLogger)
Definition: TlsChecker.cpp:294
test_StateGetTcToken
Definition: test_StateGetTcToken.cpp:20
governikus::AbstractState::mConnections
QVector< QMetaObject::Connection > mConnections
Definition: AbstractState.h:33
governikus::GlobalStatus::ExternalInfoMap
QMap< ExternalInformation, QString > ExternalInfoMap
Definition: GlobalStatus.h:134