Home
last modified time | relevance | path

Searched refs:AuthProperty (Results 1 – 10 of 10) sorted by relevance

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DAuthContextTest.cs32 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 …]
DAuthPropertyTest.cs29 … 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/
DAuthContext.cs36 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()
DAuthProperty.cs31 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/
DAuthContextSafeHandle.cs46 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/
Dauth_context.h35 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/
Dauth_property_iterator_test.cc68 AuthProperty p0 = *iter; in TEST_F()
70 AuthProperty p1 = *iter; in TEST_F()
72 AuthProperty p2 = *iter; in TEST_F()
Dsecure_auth_context_test.cc72 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/
Dauth_property_iterator.cc64 const AuthProperty AuthPropertyIterator::operator*() { in operator *()
/external/grpc-grpc/doc/
Dserver_side_auth.md36 ## AuthProperty section in Server-side API for Authenticating Clients