AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthScheme.h
1
5#pragma once
6
7#include <smithy/identity/resolver/AwsIdentityResolverBase.h>
8#include <smithy/identity/signer/AwsSignerBase.h>
9
10namespace smithy {
11 template<typename IDENTITY_T>
13 {
14 public:
15 using IdentityT = IDENTITY_T;
16
17 template<std::size_t N>
18 AuthScheme(char const (&iSchemeId)[N])
19 {
20 memcpy(schemeId, iSchemeId, N);
21 }
22
23 char schemeId[32];
24
25 virtual ~AuthScheme() = default;
26
27 virtual std::shared_ptr<IdentityResolverBase<IdentityT>> identityResolver() = 0;
28
29 virtual std::shared_ptr<AwsSignerBase<IdentityT>> signer() = 0;
30 };
31}
IDENTITY_T IdentityT
Definition AuthScheme.h:15
virtual std::shared_ptr< IdentityResolverBase< IdentityT > > identityResolver()=0
AuthScheme(char const (&iSchemeId)[N])
Definition AuthScheme.h:18
virtual ~AuthScheme()=default
virtual std::shared_ptr< AwsSignerBase< IdentityT > > signer()=0