10Duke Enterprise C++ SDK
Toggle main menu visibility
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
9
namespace
tenduke
{
namespace
crypto
{
10
15
class
Crypto
16
{
17
public
:
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
43
private
:
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::Crypto
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
tenduke::crypto::Crypto::ciphers
virtual std::shared_ptr< const ::tenduke::crypto::Ciphers > ciphers() const
Returns "Ciphers"-service.
Definition
Crypto.h:37
tenduke::crypto::Crypto::publicKeys
virtual const ::tenduke::crypto::PublicKeyFactory & publicKeys() const
Returns "Public keys"-service.
Definition
Crypto.h:41
tenduke::crypto::Crypto::Crypto
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
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:12
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
crypto
Crypto.h
Generated by
1.17.0