QGrpcChannelCredentials Class

The QGrpcChannelCredentials is the base class for gRPC channel credentials. 更多...

头: #include <QGrpcChannelCredentials>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.5
继承者: QGrpcInsecureChannelCredentials and QGrpcSslCredentials

公共函数

virtual QGrpcCredentialMap channelCredentials () const = 0

详细描述

Channel credentials are used by the channel when establishing an initial connection. For example Ssl credentials or some session tokens. Classes inheriting this class should reimplement QGrpcCredentialMap channelCredentials() const , that returns session parameters for the specific channel.

成员函数文档编制

[pure virtual] QGrpcCredentialMap QGrpcChannelCredentials:: channelCredentials () const

This pure virtual function shall return a key-value map of session parameters for the specific channel.

This function is called to obtain the QGrpcCredentialMap for the channel.