GRPC C++  1.26.0
Public Member Functions
grpc::SecureAuthContext Class Referencefinal

#include <secure_auth_context.h>

Public Member Functions

 SecureAuthContext (grpc_auth_context *ctx)
 
 ~SecureAuthContext () override=default
 
bool IsPeerAuthenticated () const override
 Returns true if the peer is authenticated. More...
 
std::vector< grpc::string_refGetPeerIdentity () const override
 A peer identity. More...
 
grpc::string GetPeerIdentityPropertyName () const override
 
std::vector< grpc::string_refFindPropertyValues (const grpc::string &name) const override
 Returns all the property values with the given name. More...
 
AuthPropertyIterator begin () const override
 Iteration over all the properties. More...
 
AuthPropertyIterator end () const override
 
void AddProperty (const grpc::string &key, const grpc::string_ref &value) override
 Mutation functions: should only be used by an AuthMetadataProcessor. More...
 
virtual bool SetPeerIdentityPropertyName (const grpc::string &name) override
 
- Public Member Functions inherited from grpc::AuthContext
virtual ~AuthContext ()
 

Constructor & Destructor Documentation

◆ SecureAuthContext()

grpc::SecureAuthContext::SecureAuthContext ( grpc_auth_context *  ctx)
inlineexplicit

◆ ~SecureAuthContext()

grpc::SecureAuthContext::~SecureAuthContext ( )
overridedefault

Member Function Documentation

◆ AddProperty()

void grpc::SecureAuthContext::AddProperty ( const grpc::string key,
const grpc::string_ref value 
)
overridevirtual

Mutation functions: should only be used by an AuthMetadataProcessor.

Implements grpc::AuthContext.

◆ begin()

AuthPropertyIterator grpc::SecureAuthContext::begin ( ) const
overridevirtual

Iteration over all the properties.

Implements grpc::AuthContext.

◆ end()

AuthPropertyIterator grpc::SecureAuthContext::end ( ) const
overridevirtual

Implements grpc::AuthContext.

◆ FindPropertyValues()

std::vector< grpc::string_ref > grpc::SecureAuthContext::FindPropertyValues ( const grpc::string name) const
overridevirtual

Returns all the property values with the given name.

Implements grpc::AuthContext.

◆ GetPeerIdentity()

std::vector< grpc::string_ref > grpc::SecureAuthContext::GetPeerIdentity ( ) const
overridevirtual

A peer identity.

It is, in general, comprised of one or more properties (in which case they have the same name).

Implements grpc::AuthContext.

◆ GetPeerIdentityPropertyName()

grpc::string grpc::SecureAuthContext::GetPeerIdentityPropertyName ( ) const
overridevirtual

Implements grpc::AuthContext.

◆ IsPeerAuthenticated()

bool grpc::SecureAuthContext::IsPeerAuthenticated ( ) const
overridevirtual

Returns true if the peer is authenticated.

Implements grpc::AuthContext.

◆ SetPeerIdentityPropertyName()

bool grpc::SecureAuthContext::SetPeerIdentityPropertyName ( const grpc::string name)
overridevirtual

Implements grpc::AuthContext.


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