diff options
Diffstat (limited to 'include/grpc++/auth_context.h')
-rw-r--r-- | include/grpc++/auth_context.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/grpc++/auth_context.h b/include/grpc++/auth_context.h index 158f8e3f07..c42105b927 100644 --- a/include/grpc++/auth_context.h +++ b/include/grpc++/auth_context.h @@ -36,14 +36,13 @@ #include <vector> +#include <grpc++/auth_property_iterator.h> #include <grpc++/config.h> namespace grpc { class AuthContext { public: - typedef std::pair<grpc::string, grpc::string> Property; - virtual ~AuthContext() {} // A peer identity, in general is one or more properties (in which case they @@ -54,6 +53,10 @@ class AuthContext { // Returns all the property values with the given name. virtual std::vector<grpc::string> FindPropertyValues( const grpc::string& name) const = 0; + + // Iteration over all the properties. + virtual AuthPropertyIterator begin() const = 0; + virtual AuthPropertyIterator end() const = 0; }; } // namespace grpc |