#include <secure_auth_context.h>
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_ref > | FindPropertyValues (const std::string &name) const override |
Returns all the property values with the given name. More... | |
std::vector< grpc::string_ref > | GetPeerIdentity () 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 | |
![]() | |
virtual | ~AuthContext () |
Private Attributes | |
grpc_core::RefCountedPtr< grpc_auth_context > | ctx_ |
Definition at line 35 of file secure_auth_context.h.
|
inlineexplicit |
Definition at line 37 of file secure_auth_context.h.
|
overridedefault |
|
overridevirtual |
Mutation functions: should only be used by an AuthMetadataProcessor.
Implements grpc::AuthContext.
Definition at line 81 of file secure_auth_context.cc.
|
overridevirtual |
Iteration over all the properties.
Implements grpc::AuthContext.
Definition at line 65 of file secure_auth_context.cc.
|
overridevirtual |
Implements grpc::AuthContext.
Definition at line 77 of file secure_auth_context.cc.
|
overridevirtual |
Returns all the property values with the given name.
Implements grpc::AuthContext.
Definition at line 50 of file secure_auth_context.cc.
|
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.
|
overridevirtual |
Implements grpc::AuthContext.
Definition at line 42 of file secure_auth_context.cc.
|
overridevirtual |
Returns true if the peer is authenticated.
Implements grpc::AuthContext.
Definition at line 94 of file secure_auth_context.cc.
|
overridevirtual |
Implements grpc::AuthContext.
Definition at line 88 of file secure_auth_context.cc.
|
private |
Definition at line 61 of file secure_auth_context.h.