CatapultServer  v0.5.0.1 (Elephant)
SecurePacketSocketDecorator.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "ConnectionSecurityMode.h"
23 #include "catapult/types.h"
24 
25 namespace catapult {
26  namespace crypto { class KeyPair; }
27  namespace ionet { class PacketSocket; }
28  namespace utils { class FileSize; }
29 }
30 
31 namespace catapult { namespace ionet {
32 
35  std::shared_ptr<PacketSocket> Secure(
36  const std::shared_ptr<PacketSocket>& pSocket,
37  ConnectionSecurityMode securityMode,
38  const crypto::KeyPair& sourceKeyPair,
39  const Key& remoteKey,
40  utils::FileSize maxPacketDataSize);
41 }}
m_pIo
std::shared_ptr< PacketIo > m_pIo
Definition: SecurePacketSocketDecorator.cpp:80
ConnectionSecurityMode.h
catapult::ionet::Secure
std::shared_ptr< PacketSocket > Secure(const std::shared_ptr< PacketSocket > &pSocket, ConnectionSecurityMode securityMode, const crypto::KeyPair &sourceKeyPair, const Key &remoteKey, utils::FileSize maxPacketDataSize)
Definition: SecurePacketSocketDecorator.cpp:85
m_remoteKey
Key m_remoteKey
Definition: SecurePacketSocketDecorator.cpp:78
FileSize.h
SecureSignedPacketIo.h
catapult::ionet::ConnectionSecurityMode
ConnectionSecurityMode
Possible connection security modes.
Definition: ConnectionSecurityMode.h:36
catapult::utils::FileSize::bytes32
uint32_t bytes32() const
Returns the number of bytes as a uint32_t.
Definition: FileSize.h:72
PacketSocket.h
catapult::crypto::KeyPair
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
m_sourceKeyPair
const crypto::KeyPair & m_sourceKeyPair
Definition: SecurePacketSocketDecorator.cpp:77
catapult::ionet::CreateSecureSignedBatchPacketReader
std::shared_ptr< BatchPacketReader > CreateSecureSignedBatchPacketReader(const std::shared_ptr< BatchPacketReader > &pReader, const Key &remoteKey)
Definition: SecureSignedPacketIo.cpp:162
catapult::utils::FileSize
Represents a file size.
Definition: FileSize.h:29
catapult::ionet::CreateSecureSignedPacketIo
std::shared_ptr< PacketIo > CreateSecureSignedPacketIo(const std::shared_ptr< PacketIo > &pIo, const crypto::KeyPair &sourceKeyPair, const Key &remoteKey, uint32_t maxSignedPacketDataSize)
Definition: SecureSignedPacketIo.cpp:131
m_pSocket
std::shared_ptr< PacketSocket > m_pSocket
Definition: SecurePacketSocketDecorator.cpp:76
types.h
pSocket
SocketPointer pSocket
Definition: PacketWriters.cpp:46
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >
m_maxPacketDataSize
uint32_t m_maxPacketDataSize
Definition: SecurePacketSocketDecorator.cpp:79
m_pReader
std::shared_ptr< BatchPacketReader > m_pReader
Definition: SecurePacketSocketDecorator.cpp:81
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
SecurePacketSocketDecorator.h