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_;
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
bool operator==(const AuthPropertyIterator &rhs) const
virtual AuthPropertyIterator end() const =0
std::pair< string_ref, string_ref > AuthProperty
Definition: auth_context.h:33
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*()
virtual ~AuthContext()
Definition: auth_context.h:67
bool operator!=(const AuthPropertyIterator &rhs) const
AuthPropertyIterator & operator++()
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
virtual std::vector< grpc::string_ref > FindPropertyValues(const grpc::string &name) const =0
Returns all the property values with the given name.
friend class SecureAuthContext
Definition: auth_context.h:53
virtual bool SetPeerIdentityPropertyName(const string &name)=0
virtual grpc::string GetPeerIdentityPropertyName() const =0