OpenTTD Source  20241121-master-g67a0fccfad
NetworkAuthenticationHandler Class Referenceabstract

Base class for cryptographic authentication handlers. More...

#include <network_crypto.h>

Inheritance diagram for NetworkAuthenticationHandler:
NetworkAuthenticationClientHandler NetworkAuthenticationServerHandler CombinedAuthenticationClientHandler X25519AuthorizedKeyClientHandler X25519KeyExchangeOnlyClientHandler X25519PAKEClientHandler CombinedAuthenticationServerHandler X25519AuthorizedKeyServerHandler X25519KeyExchangeOnlyServerHandler X25519PAKEServerHandler

Public Member Functions

virtual std::string_view GetName () const =0
 Get the name of the handler for debug messages. More...
 
virtual NetworkAuthenticationMethod GetAuthenticationMethod () const =0
 Get the method this handler is providing functionality for. More...
 
virtual std::unique_ptr< NetworkEncryptionHandlerCreateClientToServerEncryptionHandler () const =0
 Create a NetworkEncryptionHandler to encrypt or decrypt messages from the client to the server. More...
 
virtual std::unique_ptr< NetworkEncryptionHandlerCreateServerToClientEncryptionHandler () const =0
 Create a NetworkEncryptionHandler to encrypt or decrypt messages from the server to the client. More...
 

Detailed Description

Base class for cryptographic authentication handlers.

Definition at line 190 of file network_crypto.h.

Member Function Documentation

◆ CreateClientToServerEncryptionHandler()

virtual std::unique_ptr<NetworkEncryptionHandler> NetworkAuthenticationHandler::CreateClientToServerEncryptionHandler ( ) const
pure virtual

◆ CreateServerToClientEncryptionHandler()

virtual std::unique_ptr<NetworkEncryptionHandler> NetworkAuthenticationHandler::CreateServerToClientEncryptionHandler ( ) const
pure virtual

◆ GetAuthenticationMethod()

virtual NetworkAuthenticationMethod NetworkAuthenticationHandler::GetAuthenticationMethod ( ) const
pure virtual

◆ GetName()

virtual std::string_view NetworkAuthenticationHandler::GetName ( ) const
pure virtual

The documentation for this class was generated from the following file: