TrinityCore
bgs::protocol::authentication::v1::AuthenticationService Class Reference

#include <authentication_service.pb.h>

+ Inheritance diagram for bgs::protocol::authentication::v1::AuthenticationService:

Public Types

typedef std::integral_constant< uint32, 0xDECFC01u > OriginalHash
 
typedef std::integral_constant< uint32, 0xFF5A6AC3u > NameHash
 

Public Member Functions

 AuthenticationService (bool use_original_hash)
 
 AuthenticationService (AuthenticationService const &)=delete
 
 AuthenticationService (AuthenticationService &&)=delete
 
AuthenticationServiceoperator= (AuthenticationService const &)=delete
 
AuthenticationServiceoperator= (AuthenticationService &&)=delete
 
virtual ~AuthenticationService ()
 
void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer) final
 
- Public Member Functions inherited from ServiceBase
 ServiceBase (uint32 serviceHash)
 
virtual ~ServiceBase ()
 
virtual void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer)=0
 
virtual std::string GetCallerInfo () const =0
 
void LogDisallowedMethod (uint32 methodId)
 
void LogCallClientMethod (char const *methodName, char const *inputTypeName, google::protobuf::Message const *request)
 
void LogCallServerMethod (char const *methodName, char const *inputTypeName, google::protobuf::Message const *request)
 
void LogUnimplementedServerMethod (char const *methodName, google::protobuf::Message const *request)
 
void LogInvalidMethod (uint32 methodId)
 
void LogFailedParsingRequest (char const *methodName)
 
uint32 GetServiceHash () const
 

Static Public Member Functions

static google::protobuf::ServiceDescriptor const * descriptor ()
 

Protected Member Functions

virtual uint32 HandleLogon (::bgs::protocol::authentication::v1::LogonRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleVerifyWebCredentials (::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleGenerateWebCredentials (::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest const *request, ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
- Protected Member Functions inherited from ServiceBase
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> CreateServerContinuation (uint32 token, uint32 methodId, char const *methodName, google::protobuf::Descriptor const *outputDescriptor)
 
virtual void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request, std::function< void(MessageBuffer)> callback)=0
 
virtual void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request)=0
 
virtual void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, uint32 status)=0
 
virtual void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, google::protobuf::Message const *response)=0
 

Private Member Functions

void ParseAndHandleLogon (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleVerifyWebCredentials (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleGenerateWebCredentials (uint32 token, uint32 methodId, MessageBuffer &buffer)
 

Additional Inherited Members

- Protected Attributes inherited from ServiceBase
uint32 service_hash_
 

Detailed Description

Definition at line 1127 of file authentication_service.pb.h.

Member Typedef Documentation

◆ NameHash

typedef std::integral_constant<uint32, 0xFF5A6AC3u> bgs::protocol::authentication::v1::AuthenticationService::NameHash

Definition at line 1139 of file authentication_service.pb.h.

◆ OriginalHash

Definition at line 1138 of file authentication_service.pb.h.

Constructor & Destructor Documentation

◆ AuthenticationService() [1/3]

bgs::protocol::authentication::v1::AuthenticationService::AuthenticationService ( bool  use_original_hash)
explicit

◆ AuthenticationService() [2/3]

bgs::protocol::authentication::v1::AuthenticationService::AuthenticationService ( AuthenticationService const &  )
delete

◆ AuthenticationService() [3/3]

bgs::protocol::authentication::v1::AuthenticationService::AuthenticationService ( AuthenticationService &&  )
delete

◆ ~AuthenticationService()

virtual bgs::protocol::authentication::v1::AuthenticationService::~AuthenticationService ( )
virtual

Member Function Documentation

◆ CallServerMethod()

void bgs::protocol::authentication::v1::AuthenticationService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finalvirtual

Implements ServiceBase.

◆ descriptor()

static google::protobuf::ServiceDescriptor const * bgs::protocol::authentication::v1::AuthenticationService::descriptor ( )
static

◆ HandleGenerateWebCredentials()

virtual uint32 bgs::protocol::authentication::v1::AuthenticationService::HandleGenerateWebCredentials ( ::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest const *  request,
::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleLogon()

virtual uint32 bgs::protocol::authentication::v1::AuthenticationService::HandleLogon ( ::bgs::protocol::authentication::v1::LogonRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleVerifyWebCredentials()

virtual uint32 bgs::protocol::authentication::v1::AuthenticationService::HandleVerifyWebCredentials ( ::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ operator=() [1/2]

AuthenticationService & bgs::protocol::authentication::v1::AuthenticationService::operator= ( AuthenticationService &&  )
delete

◆ operator=() [2/2]

AuthenticationService & bgs::protocol::authentication::v1::AuthenticationService::operator= ( AuthenticationService const &  )
delete

◆ ParseAndHandleGenerateWebCredentials()

void bgs::protocol::authentication::v1::AuthenticationService::ParseAndHandleGenerateWebCredentials ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleLogon()

void bgs::protocol::authentication::v1::AuthenticationService::ParseAndHandleLogon ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleVerifyWebCredentials()

void bgs::protocol::authentication::v1::AuthenticationService::ParseAndHandleVerifyWebCredentials ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

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