/external/grpc-grpc/src/csharp/Grpc.Core.Tests/ |
D | AuthContextTest.cs | 32 var context = new AuthContext(null, new Dictionary<string, List<AuthProperty>>()); in EmptyContext() 43 var property1 = AuthProperty.Create("abc", new byte[] { 68, 69, 70 }); in AuthenticatedContext() 44 … var context = new AuthContext("some_identity", new Dictionary<string, List<AuthProperty>> in AuthenticatedContext() 46 {"some_identity", new List<AuthProperty> {property1}} in AuthenticatedContext() 56 var property1 = AuthProperty.Create("abc", new byte[] {68, 69, 70}); in FindPropertiesByName() 57 var property2 = AuthProperty.Create("abc", new byte[] {71, 72, 73 }); in FindPropertiesByName() 58 var property3 = AuthProperty.Create("abc", new byte[] {}); in FindPropertiesByName() 59 var context = new AuthContext(null, new Dictionary<string, List<AuthProperty>> in FindPropertiesByName() 61 {"existent", new List<AuthProperty> {property1, property2}}, in FindPropertiesByName() 62 {"foobar", new List<AuthProperty> {property3}}, in FindPropertiesByName() [all …]
|
D | AuthPropertyTest.cs | 29 … Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.Create(null, new byte[0])); in Create_NameIsNotNull() 30 … Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.CreateUnsafe(null, new byte[0])); in Create_NameIsNotNull() 36 Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.Create("abc", null)); in Create_ValueIsNotNull() 37 … Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.CreateUnsafe("abc", null)); in Create_ValueIsNotNull() 44 var authProperty = AuthProperty.Create("abc", valueBytes); in Create() 57 var authProperty = AuthProperty.CreateUnsafe("abc", valueBytes); in CreateUnsafe()
|
/external/grpc-grpc/src/csharp/Grpc.Core/ |
D | AuthContext.cs | 36 Dictionary<string, List<AuthProperty>> properties; 43 …internal AuthContext(string peerIdentityPropertyName, Dictionary<string, List<AuthProperty>> prope… in AuthContext() 76 public IEnumerable<AuthProperty> PeerIdentity 82 return Enumerable.Empty<AuthProperty>(); 91 public IEnumerable<AuthProperty> Properties 103 public IEnumerable<AuthProperty> FindPropertiesByName(string propertyName) in FindPropertiesByName() 105 List<AuthProperty> result; in FindPropertiesByName() 108 return Enumerable.Empty<AuthProperty>(); in FindPropertiesByName()
|
D | AuthProperty.cs | 31 public class AuthProperty class 37 private AuthProperty(string name, byte[] valueBytes) in AuthProperty() method in Grpc.Core.AuthProperty 84 public static AuthProperty Create(string name, byte[] valueBytes) in Create() 89 return new AuthProperty(name, valueCopy); in Create() 106 internal static AuthProperty CreateUnsafe(string name, byte[] valueBytes) in CreateUnsafe() 108 return new AuthProperty(name, valueBytes); in CreateUnsafe()
|
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/ |
D | AuthContextSafeHandle.cs | 46 return new AuthContext(null, new Dictionary<string, List<AuthProperty>>()); in ToAuthContext() 51 var propertiesDict = new Dictionary<string, List<AuthProperty>>(); in ToAuthContext() 61 propertiesDict[authProperty.Name] = new List<AuthProperty>(); in ToAuthContext() 75 private AuthProperty PtrToAuthProperty(IntPtr authPropertyPtr) in PtrToAuthProperty() 84 return AuthProperty.CreateUnsafe(name, valueBytes); in PtrToAuthProperty()
|
/external/grpc-grpc/include/grpcpp/impl/codegen/security/ |
D | auth_context.h | 35 typedef std::pair<grpc::string_ref, grpc::string_ref> AuthProperty; typedef 38 : public std::iterator<std::input_iterator_tag, const AuthProperty> { 45 const AuthProperty operator*();
|
/external/grpc-grpc/test/cpp/common/ |
D | auth_property_iterator_test.cc | 68 AuthProperty p0 = *iter; in TEST_F() 70 AuthProperty p1 = *iter; in TEST_F() 72 AuthProperty p2 = *iter; in TEST_F()
|
D | secure_auth_context_test.cc | 72 AuthProperty p0 = *iter; in TEST_F() 74 AuthProperty p1 = *iter; in TEST_F() 76 AuthProperty p2 = *iter; in TEST_F()
|
/external/grpc-grpc/src/cpp/common/ |
D | auth_property_iterator.cc | 64 const AuthProperty AuthPropertyIterator::operator*() { in operator *()
|
/external/grpc-grpc/doc/ |
D | server_side_auth.md | 36 ## AuthProperty section in Server-side API for Authenticating Clients
|