Go to the documentation of this file.
19 #ifndef GRPCPP_SECURITY_AUTH_CONTEXT_H
20 #define GRPCPP_SECURITY_AUTH_CONTEXT_H
33 class SecureAuthContext;
86 const std::string& name)
const = 0;
99 #endif // GRPCPP_SECURITY_AUTH_CONTEXT_H
This class is a non owning reference to a string.
Definition: string_ref.h:41
virtual bool SetPeerIdentityPropertyName(const std::string &name)=0
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
virtual ~AuthContext()
Definition: auth_context.h:72
bool operator==(const AuthPropertyIterator &rhs) const
const AuthProperty value_type
Definition: auth_context.h:40
std::forward_iterator_tag iterator_category
Definition: auth_context.h:39
std::ptrdiff_t difference_type
Definition: auth_context.h:43
Definition: grpc_security.h:37
bool operator!=(const AuthPropertyIterator &rhs) const
virtual bool IsPeerAuthenticated() const =0
Returns true if the peer is authenticated.
Class encapsulating the Authentication Information.
Definition: auth_context.h:70
struct grpc_auth_context grpc_auth_context
Definition: credentials.h:39
virtual void AddProperty(const std::string &key, const string_ref &value)=0
Mutation functions: should only be used by an AuthMetadataProcessor.
value, if not NULL, is guaranteed to be NULL terminated.
Definition: grpc_security.h:44
void reference
Definition: auth_context.h:42
virtual std::vector< grpc::string_ref > FindPropertyValues(const std::string &name) const =0
Returns all the property values with the given name.
virtual std::vector< grpc::string_ref > GetPeerIdentity() const =0
A peer identity.
AuthPropertyIterator & operator++()
virtual AuthPropertyIterator end() const =0
virtual AuthPropertyIterator begin() const =0
Iteration over all the properties.
std::pair< string_ref, string_ref > AuthProperty
Definition: auth_context.h:33
friend class SecureAuthContext
Definition: auth_context.h:58
void pointer
Definition: auth_context.h:41
virtual std::string GetPeerIdentityPropertyName() const =0
Definition: auth_context.h:37