19 #ifndef GRPCPP_IMPL_CODEGEN_SECURITY_AUTH_CONTEXT_H 20 #define GRPCPP_IMPL_CODEGEN_SECURITY_AUTH_CONTEXT_H 28 struct grpc_auth_context;
29 struct grpc_auth_property;
30 struct grpc_auth_property_iterator;
38 :
public std::iterator<std::input_iterator_tag, const AuthProperty> {
50 const grpc_auth_property_iterator* iter);
54 const grpc_auth_property* property_;
56 const grpc_auth_context* ctx_;
95 #endif // GRPCPP_IMPL_CODEGEN_SECURITY_AUTH_CONTEXT_H
std::string string
Definition: config.h:35
virtual bool IsPeerAuthenticated() const =0
Returns true if the peer is authenticated.
Class encapsulating the Authentication Information.
Definition: auth_context.h:65
Definition: secure_auth_context.h:29
bool operator==(const AuthPropertyIterator &rhs) const
Definition: auth_property_iterator.cc:52
virtual AuthPropertyIterator end() const =0
AuthPropertyIterator()
Definition: auth_property_iterator.cc:25
std::pair< string_ref, string_ref > AuthProperty
Definition: auth_context.h:33
AuthPropertyIterator & operator++()
Definition: auth_property_iterator.cc:37
virtual AuthPropertyIterator begin() const =0
Iteration over all the properties.
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
const AuthProperty operator*()
Definition: auth_property_iterator.cc:64
virtual ~AuthContext()
Definition: auth_context.h:67
bool operator!=(const AuthPropertyIterator &rhs) const
Definition: auth_property_iterator.cc:60
This class is a non owning reference to a string.
Definition: string_ref.h:41
virtual std::vector< grpc::string_ref > GetPeerIdentity() const =0
A peer identity.
virtual void AddProperty(const grpc::string &key, const string_ref &value)=0
Mutation functions: should only be used by an AuthMetadataProcessor.
Definition: auth_context.h:37
~AuthPropertyIterator()
Definition: auth_property_iterator.cc:35
virtual std::vector< grpc::string_ref > FindPropertyValues(const grpc::string &name) const =0
Returns all the property values with the given name.
virtual bool SetPeerIdentityPropertyName(const string &name)=0
virtual grpc::string GetPeerIdentityPropertyName() const =0