AusweisApp2
UrlUtil.h
gehe zur Dokumentation dieser Datei
1 
6 #pragma once
7 
8 #include "ECardApiResult.h"
9 
10 #include <QSslCertificate>
11 #include <QString>
12 #include <QUrl>
13 
14 namespace governikus
15 {
16 
22 class UrlUtil
23 {
24  UrlUtil() = delete;
25  ~UrlUtil() = delete;
26 
27  static inline QString removePrefix(QString pStr);
28  static inline QString getSuffix(ECardApiResult::Minor pMinor);
29 
30  public:
34  static QUrl getUrlOrigin(const QUrl& pUrl);
35 
39  static bool isMatchingSameOriginPolicy(const QUrl& pUrl1, const QUrl& pUrl2);
40 
44  static QUrl addMajorMinor(const QUrl& pUrl, const GlobalStatus& pStatus);
45 
46 };
47 
48 } // namespace governikus
Utility class for checking various constraints on URLs.
Definition: UrlUtil.h:22
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
Definition: GlobalStatus.h:19
static QUrl addMajorMinor(const QUrl &pUrl, const GlobalStatus &pStatus)
Append result to URL.
Definition: UrlUtil.cpp:64
static QUrl getUrlOrigin(const QUrl &pUrl)
Determines the URL origin, i.e.
Definition: UrlUtil.cpp:19
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
Minor
Definition: ECardApiResult.h:43