|
|
|
@ -37,7 +37,6 @@ |
|
|
|
|
#include <iterator> |
|
|
|
|
#include <vector> |
|
|
|
|
|
|
|
|
|
#include <grpc/grpc_security.h> |
|
|
|
|
#include <grpc++/support/config.h> |
|
|
|
|
#include <grpc++/support/string_ref.h> |
|
|
|
|
|
|
|
|
@ -100,15 +99,6 @@ class AuthContext { |
|
|
|
|
virtual AuthPropertyIterator begin() const = 0; |
|
|
|
|
virtual AuthPropertyIterator end() const = 0; |
|
|
|
|
|
|
|
|
|
static string transport_security_type_property_name() { |
|
|
|
|
return GRPC_TRANSPORT_SECURITY_TYPE_PROPERTY_NAME; |
|
|
|
|
} |
|
|
|
|
static string ssl_transport_security_type() { |
|
|
|
|
return GRPC_SSL_TRANSPORT_SECURITY_TYPE; |
|
|
|
|
} |
|
|
|
|
static string x509_cn_property_name() { return GRPC_X509_CN_PROPERTY_NAME; } |
|
|
|
|
static string x509_san_property_name() { return GRPC_X509_SAN_PROPERTY_NAME; } |
|
|
|
|
|
|
|
|
|
// Mutation functions: should only be used by an AuthMetadataProcessor.
|
|
|
|
|
virtual void AddProperty(const grpc::string& key, |
|
|
|
|
const grpc::string_ref& value) = 0; |
|
|
|
|