diff options
author | 2015-08-10 12:45:17 -0700 | |
---|---|---|
committer | 2015-08-13 17:25:52 -0700 | |
commit | c2274e706937c1742e72a20a889ce1283d12af52 (patch) | |
tree | e33b3eb2b86119ed634c587e8bfb62ad1e7e1bfe /src/cpp/common/secure_auth_context.h | |
parent | 8d428f1e6d0f7b76f8b737ae63f7a74b97279a1d (diff) |
Adding C++ auth metadata processor.
- We always do the processing asynchronously but maintain a synchronous
API for the implementor of the processor.
- there are a lot of string copies right now. Having a StringPiece
object in grpc++ would really help with that (as we would use it for
C++ metadata).
- Please review the API carefully and if you're happy with it, I'll
proceed with tests.
Diffstat (limited to 'src/cpp/common/secure_auth_context.h')
-rw-r--r-- | src/cpp/common/secure_auth_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpp/common/secure_auth_context.h b/src/cpp/common/secure_auth_context.h index 264ed620a3..1b27bf5c32 100644 --- a/src/cpp/common/secure_auth_context.h +++ b/src/cpp/common/secure_auth_context.h @@ -57,6 +57,12 @@ class SecureAuthContext GRPC_FINAL : public AuthContext { AuthPropertyIterator end() const GRPC_OVERRIDE; + void AddProperty(const grpc::string& key, + const grpc::string& value) GRPC_OVERRIDE; + + virtual bool SetPeerIdentityPropertyName(const grpc::string& name) + GRPC_OVERRIDE; + private: grpc_auth_context* ctx_; }; |