10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
Crypto.h
1#ifndef TENDUKE_CRYPTO_CRYPTO_H
2#define TENDUKE_CRYPTO_CRYPTO_H
3
4#include <memory>
5
6#include "./Ciphers.h"
7#include "./PublicKeyFactory.h"
8
9namespace tenduke { namespace crypto {
10
15class Crypto
16{
17public:
18 virtual ~Crypto() = default;
19
25 explicit Crypto(
26 const std::shared_ptr<::tenduke::crypto::Ciphers> &ciphersService,
27 const std::shared_ptr<::tenduke::crypto::PublicKeyFactory> &publicKeyFactory
28 )
29 : ciphersService(ciphersService)
30 , publicKeyFactory(publicKeyFactory)
31 {
32 }
33
37 virtual std::shared_ptr<const ::tenduke::crypto::Ciphers> ciphers() const { return ciphersService; }
38
41 virtual const ::tenduke::crypto::PublicKeyFactory& publicKeys() const { return *publicKeyFactory; }
42
43private:
44 std::shared_ptr<const ::tenduke::crypto::Ciphers> ciphersService;
45 std::shared_ptr<const ::tenduke::crypto::PublicKeyFactory> publicKeyFactory;
46};
47
48
49}}
50
51#endif //TENDUKE_CLIENT_CORE_CRYPTO_H
Crypto(const std::shared_ptr<::tenduke::crypto::Ciphers > &ciphersService, const std::shared_ptr<::tenduke::crypto::PublicKeyFactory > &publicKeyFactory)
Constructs a new instance.
Definition Crypto.h:25
virtual std::shared_ptr< const ::tenduke::crypto::Ciphers > ciphers() const
Returns "Ciphers"-service.
Definition Crypto.h:37
virtual const ::tenduke::crypto::PublicKeyFactory & publicKeys() const
Returns "Public keys"-service.
Definition Crypto.h:41
Crypto(const std::shared_ptr<::tenduke::crypto::Ciphers > &ciphersService, const std::shared_ptr<::tenduke::crypto::PublicKeyFactory > &publicKeyFactory)
Constructs a new instance.
Definition Crypto.h:25
Cryptography services.
Definition AbstractCiphers.h:12
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4