34 #ifndef GRPCXX_SUPPORT_AUTH_CONTEXT_H
35 #define GRPCXX_SUPPORT_AUTH_CONTEXT_H
43 struct grpc_auth_context;
44 struct grpc_auth_property;
45 struct grpc_auth_property_iterator;
48 class SecureAuthContext;
50 typedef std::pair<grpc::string_ref, grpc::string_ref>
AuthProperty;
53 :
public std::iterator<std::input_iterator_tag, const AuthProperty> {
65 const grpc_auth_property_iterator* iter);
69 const grpc_auth_property* property_;
71 const grpc_auth_context* ctx_;
110 #endif // GRPCXX_SUPPORT_AUTH_CONTEXT_H
std::pair< grpc::string_ref, grpc::string_ref > AuthProperty
Definition: auth_context.h:48
std::string string
Definition: config.h:112
virtual bool IsPeerAuthenticated() const =0
Returns true if the peer is authenticated.
Class encapsulating the Authentication Information.
Definition: auth_context.h:80
virtual AuthPropertyIterator end() const =0
virtual bool SetPeerIdentityPropertyName(const grpc::string &name)=0
virtual AuthPropertyIterator begin() const =0
Iteration over all the properties.
bool operator!=(const AuthPropertyIterator &rhs) const
const AuthProperty operator*()
virtual ~AuthContext()
Definition: auth_context.h:82
bool operator==(const AuthPropertyIterator &rhs) const
AuthPropertyIterator & operator++()
This class is a non owning reference to a string.
Definition: string_ref.h:52
virtual std::vector< grpc::string_ref > GetPeerIdentity() const =0
A peer identity.
Definition: auth_context.h:52
virtual std::vector< grpc::string_ref > FindPropertyValues(const grpc::string &name) const =0
Returns all the property values with the given name.
virtual void AddProperty(const grpc::string &key, const grpc::string_ref &value)=0
friend class SecureAuthContext
Definition: auth_context.h:68
virtual grpc::string GetPeerIdentityPropertyName() const =0