gehe zur Dokumentation dieser Datei
14 #include <QNetworkReply>
15 #include <QScopedPointer>
16 #include <QSslCertificate>
31 friend class ::test_StateCheckRefreshAddress;
34 QPointer<QNetworkReply> mReply;
37 bool mCertificateFetched;
38 QVector<QUrl> mVerifiedRefreshUrlHosts;
42 bool isMatchingSameOriginPolicyInDevMode()
const;
43 virtual void run()
override;
45 QUrl determineSubjectUrl();
47 void sendGetRequest();
48 void fetchServerCertificate();
49 bool checkSslConnectionAndSaveCertificate(
const QSslConfiguration& pSslConfiguration);
51 void reportCommunicationError(
const GlobalStatus& pStatus);
54 void onSslHandshakeDone();
55 void onNetworkReply();
56 void onSslErrors(
const QList<QSslError>& errors);
57 void onSslHandshakeDoneFetchingServerCertificate();
58 void onNetworkErrorFetchingServerCertificate(QNetworkReply::NetworkError pError);
62 void onEntry(QEvent* pEvent)
override;
@ Workflow_Network_Ssl_Hash_Not_In_Certificate_Description
static CertificateStatus checkAndSaveCertificate(const QSslCertificate &pCertificate, const QUrl &pUrl, const QSharedPointer< DIDAuthenticateEAC1 > &pEAC1, const QSharedPointer< const CVCertificate > &pDvCvc, const std::function< void(const QUrl &, const QSslCertificate &)> &pSaveCertificateFunc)
Checks certificate and, if OK, save it using a callback function.
Definition: CertificateChecker.cpp:20
static NetworkError toNetworkError(const QNetworkReply *const pNetworkReply)
Definition: NetworkManager.cpp:169
static bool containsFatalError(QNetworkReply *pReply, const QList< QSslError > &pErrors)
Definition: TlsChecker.cpp:274
static QString getCertificateIssuerName(const QSslCertificate &pCertificate)
This method is only needed until QSslCertificate provides its own method issuerDisplayName in Qt 5....
Definition: TlsChecker.cpp:102
@ Workflow_Network_Empty_Redirect_Url
@ Unsupported_Algorithm_Or_Length
@ Workflow_Network_Malformed_Redirect_Url
@ Hash_Not_In_Description
Definition: AbstractState.h:20
virtual QSharedPointer< AuthContext > getContext()
Definition: GenericContextContainer.h:34
void fireContinue()
Definition: moc_AbstractState.cpp:158
void onEntry(QEvent *pEvent) override
Definition: AbstractState.cpp:66
Definition: StateCheckRefreshAddress.h:28
void fireAbort()
Definition: moc_AbstractState.cpp:164
void onEntry(QEvent *pEvent) override
Definition: StateCheckRefreshAddress.cpp:441
Definition: StateBuilder.h:18
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
static bool hasValidEphemeralKeyLength(const QSslKey &pEphemeralServerKey)
Checks, whether the length of the ephemeral key is of sufficient length.
Definition: TlsChecker.cpp:62
Definition: GenericContextContainer.h:20
@ CERTIFICATE_ISSUER_NAME
@ Workflow_Network_Ssl_Certificate_Unsupported_Algorithm_Or_Length
#define spawnMessageLogger(category)
Definition: LogHandler.h:21
Definition: GlobalStatus.h:20
Definition: test_StateCheckRefreshAddress.cpp:23
@ Network_Ssl_Establishment_Error
void updateStatus(const GlobalStatus &pStatus)
Definition: AbstractState.cpp:127
@ Workflow_Network_Invalid_Scheme
static bool isMatchingSameOriginPolicy(const QUrl &pUrl1, const QUrl &pUrl2)
Checks whether the same origin policy is satisfied for the two specified URL.
Definition: UrlUtil.cpp:42
static int getLoggedStatusCode(const QNetworkReply *const pReply, const QMessageLogger &pLogger)
Definition: NetworkManager.cpp:298
@ Network_ServiceUnavailable
@ Workflow_Network_Expected_Redirect
static void logSslConfig(const QSslConfiguration &pCfg, const QMessageLogger &pLogger)
Definition: TlsChecker.cpp:294
QVector< QMetaObject::Connection > mConnections
Definition: AbstractState.h:33
virtual ~StateCheckRefreshAddress() override
Definition: StateCheckRefreshAddress.cpp:40
@ Workflow_Network_Ssl_Connection_Unsupported_Algorithm_Or_Length
QMap< ExternalInformation, QString > ExternalInfoMap
Definition: GlobalStatus.h:134