Public Member Functions | Private Attributes | List of all members
grpc::SecureAuthContext Class Referencefinal

#include <secure_auth_context.h>

Inheritance diagram for grpc::SecureAuthContext:
Inheritance graph
[legend]

Public Member Functions

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

Private Attributes

grpc_core::RefCountedPtr< grpc_auth_contextctx_
 

Detailed Description

Definition at line 35 of file secure_auth_context.h.

Constructor & Destructor Documentation

◆ SecureAuthContext()

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

Definition at line 37 of file secure_auth_context.h.

◆ ~SecureAuthContext()

grpc::SecureAuthContext::~SecureAuthContext ( )
overridedefault

Member Function Documentation

◆ AddProperty()

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

Mutation functions: should only be used by an AuthMetadataProcessor.

Implements grpc::AuthContext.

Definition at line 81 of file secure_auth_context.cc.

◆ begin()

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

Iteration over all the properties.

Implements grpc::AuthContext.

Definition at line 65 of file secure_auth_context.cc.

◆ end()

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

Implements grpc::AuthContext.

Definition at line 77 of file secure_auth_context.cc.

◆ FindPropertyValues()

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

Returns all the property values with the given name.

Implements grpc::AuthContext.

Definition at line 50 of file secure_auth_context.cc.

◆ 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.

Definition at line 27 of file secure_auth_context.cc.

◆ GetPeerIdentityPropertyName()

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

Implements grpc::AuthContext.

Definition at line 42 of file secure_auth_context.cc.

◆ IsPeerAuthenticated()

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

Returns true if the peer is authenticated.

Implements grpc::AuthContext.

Definition at line 94 of file secure_auth_context.cc.

◆ SetPeerIdentityPropertyName()

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

Implements grpc::AuthContext.

Definition at line 88 of file secure_auth_context.cc.

Member Data Documentation

◆ ctx_

grpc_core::RefCountedPtr<grpc_auth_context> grpc::SecureAuthContext::ctx_
private

Definition at line 61 of file secure_auth_context.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:31