IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QGrpcCredentials Class

The QGrpcCredentials class is a combination of call and channel credentials that is used by gRPC channels to communicate with services, using the given authentication parameters.

This class was introduced in Qt 6.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGrpcCredentials Class

  • Header: QGrpcCredentials

  • Since: Qt 6.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Grpc)

    target_link_libraries(mytarget PRIVATE Qt6::Grpc)

  • Inherits: QAbstractGrpcCredentials

Detailed Description

 

Member Function Documentation

 

[explicit] QGrpcCredentials::QGrpcCredentials(const Call &call, const Channel &channel)

Constructs QGrpcCredentials with call and channel credentials. The Call type must be the base of QGrpcCallCredentials and the Channel type must be the base of QGrpcChannelCredentials.

[explicit] QGrpcCredentials::QGrpcCredentials(const Call &call)

Constructs QGrpcCredentials with call credentials. The Call type must be the base of QGrpcCallCredentials.

[explicit] QGrpcCredentials::QGrpcCredentials(const Channel &channel)

Constructs QGrpcCredentials with channel credentials. The Channel type must be the base of QGrpcChannelCredentials.

[override virtual] QGrpcCredentials::~QGrpcCredentials()

Destroys the QGrpcCredentials object.

[override virtual] QGrpcCredentialMap QGrpcCredentials::callCredentials() const

Reimplements: QAbstractGrpcCredentials::callCredentials() const.

Returns a map of call credentials by calling QGrpcCallCredentials::operator() on a stored Call object.

[override virtual] QGrpcCredentialMap QGrpcCredentials::channelCredentials() const

Reimplements: QAbstractGrpcCredentials::channelCredentials() const.

Returns a map of channel credentials by calling QGrpcChannelCredentials::channelCredentials() on a stored Channel object.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+