QAbstractGrpcCredentials Class▲
-
Header: QAbstractGrpcCredentials
-
Since: Qt 6.5
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
-
Inherited By: QGrpcCredentials
I. Detailed Description▲
QAbstractGrpcCredentials provides a set of functions to access the call and the channel credentials that are used by gRPC channels to communicate with the services.
You may implement this interface to create your own authentication provider class, but we recommend using the QGrpcCredentials with QGrpcUserPasswordCredentials and QGrpcSslCredentials.
II. Member Function Documentation▲
II-1. [pure virtual] QGrpcCredentialMap QAbstractGrpcCredentials::callCredentials() const▲
This pure virtual function returns a key-value map of the credentials for RPC calls.
This function is called to obtain the QGrpcCredentialMap for the call.
II-2. [pure virtual] QGrpcCredentialMap QAbstractGrpcCredentials::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.
III. Related Non-Members▲
III-1. [alias] QGrpcCredentialMap▲
Alias for QMap<QByteArray, QVariant>. This is the key-value map of credentials, such as user-password credentials or session parameters.