10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
TendukeServices.h
1#ifndef TENDUKE_TENDUKESERVICES_H
2#define TENDUKE_TENDUKESERVICES_H
3
4#include "crypto/PublicKeyFactory.h"
5#include "http/HTTPClient.h"
6#include "json/JSONParser.h"
7#include "jwk/JWKSParser.h"
8#include "net/URLs.h"
9#include "oidc/autodiscovery/AutoDiscovery.h"
10#include "oidc/OIDCClientFactory.h"
11#include "time/Clock.h"
12#include "utl/Base64Decoder.h"
13#include "jwt/DefaultJWTParserFactory.h"
14
15namespace tenduke {
16
26public:
41 const std::shared_ptr<const tenduke::utl::Base64Decoder> &base64Decoder,
42 const std::shared_ptr<tenduke::time::Clock> &clock,
43 const std::shared_ptr<const tenduke::http::HTTPClient> &httpClient,
44 const std::shared_ptr<const tenduke::json::JSONParser> &jsonParser,
45 const std::shared_ptr<const tenduke::jwk::JWKSParser> &jwksParser,
46 const std::shared_ptr<const tenduke::jwt::JWTParserFactory> &jwtParser,
47 const std::shared_ptr<const tenduke::oidc::AutoDiscovery> &oidcBackendConfiguration,
48 const std::shared_ptr<const ::tenduke::net::URLs> &urls,
49 const std::shared_ptr<const tenduke::oidc::OIDCClientFactory> &oidcClientFactory,
50 const std::shared_ptr<const tenduke::crypto::PublicKeyFactory>& keyFactory
52 , clock(clock)
58 , urls(urls)
61 {}
62
63public:
65 const std::shared_ptr<const tenduke::utl::Base64Decoder> base64Decoder;
67 const std::shared_ptr<tenduke::time::Clock> clock;
69 const std::shared_ptr<const tenduke::http::HTTPClient> httpClient;
71 const std::shared_ptr<const tenduke::json::JSONParser> jsonParser;
73 const std::shared_ptr<const tenduke::jwt::JWTParserFactory> jwtParser;
75 const std::shared_ptr<const tenduke::jwk::JWKSParser> jwksParser;
77 const std::shared_ptr<const tenduke::oidc::AutoDiscovery> oidcBackendConfiguration;
79 const std::shared_ptr<const ::tenduke::net::URLs> urls;
81 const std::shared_ptr<const tenduke::oidc::OIDCClientFactory> oidcClientFactory;
83 const std::shared_ptr<const tenduke::crypto::PublicKeyFactory> keyFactory;
84};
85
86}
87
88
89#endif //TENDUKE_TENDUKESERVICES_H
const std::shared_ptr< const tenduke::jwk::JWKSParser > jwksParser
JWKS-parser.
Definition TendukeServices.h:75
const std::shared_ptr< const tenduke::json::JSONParser > jsonParser
JSON-parser.
Definition TendukeServices.h:71
const std::shared_ptr< const tenduke::jwt::JWTParserFactory > jwtParser
JWT-parser factory.
Definition TendukeServices.h:73
const std::shared_ptr< const tenduke::crypto::PublicKeyFactory > keyFactory
Cryptographic key factory.
Definition TendukeServices.h:83
const std::shared_ptr< tenduke::time::Clock > clock
Clock.
Definition TendukeServices.h:67
const std::shared_ptr< const tenduke::oidc::OIDCClientFactory > oidcClientFactory
OIDC-client factory.
Definition TendukeServices.h:81
const std::shared_ptr< const tenduke::oidc::AutoDiscovery > oidcBackendConfiguration
OIDC configuration auto discovery service.
Definition TendukeServices.h:77
const std::shared_ptr< const ::tenduke::net::URLs > urls
URL-functions.
Definition TendukeServices.h:79
const std::shared_ptr< const tenduke::http::HTTPClient > httpClient
HTTP-client.
Definition TendukeServices.h:69
TendukeServices(const std::shared_ptr< const tenduke::utl::Base64Decoder > &base64Decoder, const std::shared_ptr< tenduke::time::Clock > &clock, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< const tenduke::jwk::JWKSParser > &jwksParser, const std::shared_ptr< const tenduke::jwt::JWTParserFactory > &jwtParser, const std::shared_ptr< const tenduke::oidc::AutoDiscovery > &oidcBackendConfiguration, const std::shared_ptr< const ::tenduke::net::URLs > &urls, const std::shared_ptr< const tenduke::oidc::OIDCClientFactory > &oidcClientFactory, const std::shared_ptr< const tenduke::crypto::PublicKeyFactory > &keyFactory)
Constructs a new instance.
Definition TendukeServices.h:40
const std::shared_ptr< const tenduke::utl::Base64Decoder > base64Decoder
Base64 decoder.
Definition TendukeServices.h:65
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4