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;
33 class SecureAuthContext;
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_;
Class encapsulating the Authentication Information.
Definition: auth_context.h:65
virtual ~AuthContext()
Definition: auth_context.h:67
virtual AuthPropertyIterator begin() const =0
Iteration over all the properties.
virtual std::vector< grpc::string_ref > GetPeerIdentity() const =0
A peer identity.
virtual AuthPropertyIterator end() const =0
virtual std::vector< grpc::string_ref > FindPropertyValues(const grpc::string &name) const =0
Returns all the property values with the given name.
virtual grpc::string GetPeerIdentityPropertyName() const =0
virtual void AddProperty(const grpc::string &key, const string_ref &value)=0
Mutation functions: should only be used by an AuthMetadataProcessor.
virtual bool IsPeerAuthenticated() const =0
Returns true if the peer is authenticated.
virtual bool SetPeerIdentityPropertyName(const string &name)=0
Definition: auth_context.h:38
bool operator==(const AuthPropertyIterator &rhs) const
friend class SecureAuthContext
Definition: auth_context.h:53
const AuthProperty operator*()
AuthPropertyIterator operator++(int)
AuthPropertyIterator & operator++()
bool operator!=(const AuthPropertyIterator &rhs) const
AuthPropertyIterator(const grpc_auth_property *property, const grpc_auth_property_iterator *iter)
This class is a non owning reference to a string.
Definition: string_ref.h:41
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
std::string string
Definition: config.h:35
std::pair< string_ref, string_ref > AuthProperty
Definition: auth_context.h:33