CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
authentificated_stream.h
1
2#pragma once
3#include <system/io/stream.h>
4
5namespace System {
6namespace Net {
7namespace Security {
8
13class ASPOSECPP_SHARED_CLASS ABSTRACT AuthenticatedStream : public System::IO::Stream
14{
19
21 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
23 ASPOSECPP_SHARED_RTTI_INFO_DECL();
24
25public:
28 bool ASPOSECPP_SHARED_API get_LeaveInnerStreamOpen() const;
31 virtual ASPOSECPP_SHARED_API bool get_IsAuthenticated() const = 0;
34 virtual ASPOSECPP_SHARED_API bool get_IsMutuallyAuthenticated() const = 0;
37 virtual ASPOSECPP_SHARED_API bool get_IsEncrypted() const = 0;
40 virtual ASPOSECPP_SHARED_API bool get_IsSigned() const = 0;
43 virtual ASPOSECPP_SHARED_API bool get_IsServer() const = 0;
44
45protected:
49 ASPOSECPP_SHARED_API AuthenticatedStream(System::SharedPtr<IO::Stream> innerStream, bool leaveInnerStreamOpen);
52 ASPOSECPP_SHARED_API System::SharedPtr<IO::Stream> get_InnerStream() const;
53
54private:
55 // The stream that is used for sending and receiving data.
58 bool LeaveStreamOpen;
59};
60}}} // namespace System::Net::Security
A base class for a variety of stream implementations. Objects of this class should only be allocated ...
Definition: stream.h:24
Contains the methods for passing credentials across a stream. Objects of this class should only be al...
Definition: authentificated_stream.h:14
System::SharedPtr< IO::Stream > get_InnerStream() const
Returns the stream that is used for sending and receiving data.
virtual bool get_IsMutuallyAuthenticated() const =0
Returns a value that indicates if a server and a client are authenticated.
virtual bool get_IsSigned() const =0
Returns a value that indicates if the data sent using this stream is signed.
virtual bool get_IsEncrypted() const =0
Returns a value that indicates if the data sent using this stream is encrypted.
bool get_LeaveInnerStreamOpen() const
Returns the stream that is used by the current class instances for sending and receiving data.
virtual bool get_IsServer() const =0
Returns a value that indicates if the local side of the connection is the server.
virtual bool get_IsAuthenticated() const =0
Returns a value that indicates if authentication is successfully passed.
AuthenticatedStream(System::SharedPtr< IO::Stream > innerStream, bool leaveInnerStreamOpen)
Constructs a new instance.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9