/third_party/grpc/src/php/tests/unit_tests/ |
D | ChannelTest.php | 36 ['credentials' => Grpc\ChannelCredentials::createInsecure()]); 43 ['credentials' => \Grpc\ChannelCredentials::createSsl()]); 49 $xdsCreds = \Grpc\ChannelCredentials::createXds( 50 \Grpc\ChannelCredentials::createSsl() 56 $xdsCreds = \Grpc\ChannelCredentials::createXds( 57 \Grpc\ChannelCredentials::createInsecure() 64 $xdsCreds = \Grpc\ChannelCredentials::createXds(null); 69 $xdsCreds = \Grpc\ChannelCredentials::createXds("invalid-type"); 75 ['credentials' => Grpc\ChannelCredentials::createInsecure()]); 83 ['credentials' => Grpc\ChannelCredentials::createInsecure()]); [all …]
|
D | ChannelCredentialsTest.php | 32 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 39 $channel_credentials = Grpc\ChannelCredentials::createSsl('', '', ''); 45 $channel_credentials = Grpc\ChannelCredentials::createInsecure(); 51 Grpc\ChannelCredentials::setDefaultRootsPem("Pem-Content-Not-Verified"); 52 $this->assertTrue(Grpc\ChannelCredentials::isDefaultRootsPemSet()); 53 Grpc\ChannelCredentials::invalidateDefaultRootsPem(); 54 $this->assertFalse(Grpc\ChannelCredentials::isDefaultRootsPemSet()); 55 Grpc\ChannelCredentials::setDefaultRootsPem("Content-Not-Verified"); 56 $this->assertTrue(Grpc\ChannelCredentials::isDefaultRootsPemSet()); 62 $channel_credentials = Grpc\ChannelCredentials::createSsl([]); [all …]
|
D | InterceptorTest.php | 226 'credentials' => Grpc\ChannelCredentials::createInsecure()]); 244 'credentials' => Grpc\ChannelCredentials::createInsecure(), 273 'credentials' => Grpc\ChannelCredentials::createInsecure(), 299 'credentials' => Grpc\ChannelCredentials::createInsecure(), 329 'credentials' => Grpc\ChannelCredentials::createInsecure(), 380 'credentials' => Grpc\ChannelCredentials::createInsecure(), 402 'credentials' => Grpc\ChannelCredentials::createInsecure() 417 'credentials' => Grpc\ChannelCredentials::createInsecure() 436 'credentials' => Grpc\ChannelCredentials::createInsecure() 450 'credentials' => Grpc\ChannelCredentials::createInsecure()
|
/third_party/grpc/include/grpcpp/security/ |
D | credentials.h | 42 class ChannelCredentials; variable 46 const std::shared_ptr<grpc::ChannelCredentials>& creds, 52 const std::shared_ptr<grpc::ChannelCredentials>& creds, 59 std::shared_ptr<ChannelCredentials> XdsCredentials( 60 const std::shared_ptr<ChannelCredentials>& fallback_creds); 69 class ChannelCredentials : private grpc::GrpcLibraryCodegen { 71 ChannelCredentials(); 72 ~ChannelCredentials() override; 75 friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( 76 const std::shared_ptr<ChannelCredentials>& channel_creds, [all …]
|
D | credentials_impl.h | 40 class ChannelCredentials; variable 46 const std::string& target, const std::shared_ptr<ChannelCredentials>& creds, 51 const std::string& target, const std::shared_ptr<ChannelCredentials>& creds, 64 class ChannelCredentials : private grpc::GrpcLibraryCodegen { 66 ChannelCredentials(); 67 ~ChannelCredentials(); 70 friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( 71 const std::shared_ptr<ChannelCredentials>& channel_creds, 79 const std::shared_ptr<ChannelCredentials>& creds, 85 const std::shared_ptr<ChannelCredentials>& creds, [all …]
|
D | cronet_credentials.h | 26 class ChannelCredentials; variable 29 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine);
|
D | cronet_credentials_impl.h | 26 class ChannelCredentials; variable 29 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine);
|
/third_party/grpc/src/csharp/Grpc.Core.Api/ |
D | ChannelCredentials.cs | 31 public abstract class ChannelCredentials class 33 static readonly ChannelCredentials InsecureInstance = new InsecureCredentials(); 38 public ChannelCredentials() in ChannelCredentials() method in Grpc.Core.ChannelCredentials 46 public static ChannelCredentials Insecure 61 …public static ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials cal… in Create() 77 private sealed class InsecureCredentials : ChannelCredentials 89 private sealed class CompositeChannelCredentials : ChannelCredentials 91 readonly ChannelCredentials channelCredentials; 100 …public CompositeChannelCredentials(ChannelCredentials channelCredentials, CallCredentials callCred… in CompositeChannelCredentials()
|
/third_party/grpc/src/ruby/spec/ |
D | channel_credentials_spec.rb | 18 ChannelCredentials = GRPC::Core::ChannelCredentials constant 29 blk = proc { ChannelCredentials.new('root_certs', 'key', 'cert') } 35 expect { ChannelCredentials.new(*certs) }.not_to raise_error 40 expect { ChannelCredentials.new(root_cert) }.not_to raise_error 45 blk = proc { ChannelCredentials.new(nil, client_key, client_chain) } 50 blk = proc { ChannelCredentials.new(nil) } 68 channel_creds = ChannelCredentials.new(*certs) 76 channel_creds = ChannelCredentials.new(*certs) 87 channel_creds1 = ChannelCredentials.new(*certs) 88 channel_creds2 = ChannelCredentials.new(*certs)
|
/third_party/grpc/src/php/ext/grpc/ |
D | channel_credentials.c | 93 PHP_METHOD(ChannelCredentials, setDefaultRootsPem) { in PHP_METHOD() argument 112 PHP_METHOD(ChannelCredentials, isDefaultRootsPemSet) { in PHP_METHOD() argument 122 PHP_METHOD(ChannelCredentials, invalidateDefaultRootsPem) { in PHP_METHOD() argument 133 PHP_METHOD(ChannelCredentials, createDefault) { in PHP_METHOD() argument 149 PHP_METHOD(ChannelCredentials, createSsl) { in PHP_METHOD() argument 200 PHP_METHOD(ChannelCredentials, createComposite) { in PHP_METHOD() argument 235 PHP_METHOD(ChannelCredentials, createInsecure) { in PHP_METHOD() argument 250 PHP_METHOD(ChannelCredentials, createXds) { in PHP_METHOD() argument 306 ZEND_ARG_OBJ_INFO(0, fallback_creds, Grpc\\ChannelCredentials, 1) 310 PHP_ME(ChannelCredentials, setDefaultRootsPem, arginfo_setDefaultRootsPem, [all …]
|
/third_party/grpc/src/csharp/Grpc.Core.Tests/ |
D | ChannelTest.cs | 33 …Assert.Throws(typeof(ArgumentNullException), () => new Channel(null, ChannelCredentials.Insecure)); in Constructor_RejectsInvalidParams() 44 …t.Throws(typeof(ArgumentException), () => new Channel("127.0.0.1", ChannelCredentials.Insecure, op… in Constructor_RejectsDuplicateOptions() 50 var channel = new Channel("localhost", ChannelCredentials.Insecure); in State_IdleAfterCreation() 58 var channel = new Channel("localhost", ChannelCredentials.Insecure); in WaitForStateChangedAsync_InvalidArgument() 66 var channel = new Channel("127.0.0.1", ChannelCredentials.Insecure); in ResolvedTarget() 74 var channel = new Channel("localhost", ChannelCredentials.Insecure); in Shutdown_AllowedOnlyOnce() 82 var channel = new Channel("localhost", ChannelCredentials.Insecure); in ShutdownTokenCancelledAfterShutdown() 92 var channel = new Channel("localhost", ChannelCredentials.Insecure); in StateIsShutdownAfterShutdown() 100 var channel = new Channel("localhost", ChannelCredentials.Insecure); in ShutdownFinishesWaitForStateChangedAsync() 110 var channel = new Channel("localhost", ChannelCredentials.Insecure); in OperationsThrowAfterShutdown() [all …]
|
D | ChannelCredentialsTest.cs | 30 Assert.IsFalse(ChannelCredentials.Insecure.IsComposable); in InsecureCredentials_IsNonComposable() 36 …var composite = ChannelCredentials.Create(new FakeChannelCredentials(true), new FakeCallCredential… in ChannelCredentials_CreateComposite() 39 …Assert.Throws(typeof(ArgumentNullException), () => ChannelCredentials.Create(null, new FakeCallCre… in ChannelCredentials_CreateComposite() 40 …Assert.Throws(typeof(ArgumentNullException), () => ChannelCredentials.Create(new FakeChannelCreden… in ChannelCredentials_CreateComposite() 43 …var ex = Assert.Throws(typeof(ArgumentException), () => ChannelCredentials.Create(new FakeChannelC… in ChannelCredentials_CreateComposite()
|
/third_party/grpc/src/csharp/Grpc.Core/Internal/ |
D | DefaultChannelCredentialsConfigurator.cs | 39 …onalWeakTable<ChannelCredentials, Lazy<ChannelCredentialsSafeHandle>> CachedNativeCredentials = ne… 59 nativeCredentials = GetOrCreateNativeCredentials((ChannelCredentials) state, in SetSslCredentials() 63 …public override void SetCompositeCredentials(object state, ChannelCredentials channelCredentials, … in SetCompositeCredentials() 67 nativeCredentials = GetOrCreateNativeCredentials((ChannelCredentials) state, in SetCompositeCredentials() 81 …private ChannelCredentialsSafeHandle CreateNativeCompositeCredentials(ChannelCredentials channelCr… in CreateNativeCompositeCredentials() 94 …private ChannelCredentialsSafeHandle GetOrCreateNativeCredentials(ChannelCredentials key, Func<Cha… in GetOrCreateNativeCredentials() 156 …public static ChannelCredentialsSafeHandle ToNativeCredentials(this ChannelCredentials credentials) in ToNativeCredentials()
|
/third_party/grpc/src/cpp/client/ |
D | credentials_cc.cc | 25 ChannelCredentials::ChannelCredentials() { g_gli_initializer.summon(); } in ChannelCredentials() function in grpc::ChannelCredentials 27 ChannelCredentials::~ChannelCredentials() {} in ~ChannelCredentials()
|
D | insecure_credentials.cc | 30 class InsecureChannelCredentialsImpl final : public ChannelCredentials { 60 std::shared_ptr<ChannelCredentials> InsecureChannelCredentials() { in InsecureChannelCredentials() 61 return std::shared_ptr<ChannelCredentials>( in InsecureChannelCredentials()
|
D | cronet_credentials.cc | 28 class CronetChannelCredentialsImpl final : public ChannelCredentials { 59 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine) { in CronetChannelCredentials() 60 return std::shared_ptr<ChannelCredentials>( in CronetChannelCredentials()
|
D | create_channel.cc | 32 const std::shared_ptr<grpc::ChannelCredentials>& creds) { in CreateChannel() 38 const std::shared_ptr<grpc::ChannelCredentials>& creds, in CreateCustomChannel() 67 const std::shared_ptr<grpc::ChannelCredentials>& creds, in CreateCustomChannelWithInterceptors()
|
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
D | credentials.pxd.pxi | 52 cdef class ChannelCredentials: class 62 cdef class SSLChannelCredentials(ChannelCredentials): 71 cdef class CompositeChannelCredentials(ChannelCredentials): 74 cdef readonly ChannelCredentials _channel_credentials 79 cdef class XDSChannelCredentials(ChannelCredentials): 81 cdef readonly ChannelCredentials _fallback_credentials 109 cdef class LocalChannelCredentials(ChannelCredentials): 114 cdef class ALTSChannelCredentials(ChannelCredentials):
|
/third_party/grpc/src/php/tests/unit_tests/PersistentChannelTests/ |
D | PersistentChannelTest.php | 253 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 280 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 303 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 327 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 351 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 371 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 380 $channel_credentials = Grpc\ChannelCredentials::createSsl("a", null, 400 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, 409 $channel_credentials = Grpc\ChannelCredentials::createSsl("a", null, 429 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null, [all …]
|
/third_party/grpc/include/grpcpp/ |
D | create_channel.h | 39 const std::shared_ptr<ChannelCredentials>& creds); 53 const std::shared_ptr<ChannelCredentials>& creds, 70 const std::shared_ptr<ChannelCredentials>& creds,
|
D | create_channel_impl.h | 39 const std::shared_ptr<::grpc::ChannelCredentials>& creds); 53 const std::shared_ptr<::grpc::ChannelCredentials>& creds, 70 const std::shared_ptr<grpc::ChannelCredentials>& creds,
|
/third_party/grpc/src/csharp/Grpc.Auth/ |
D | GoogleGrpcCredentials.cs | 41 public static async Task<ChannelCredentials> GetApplicationDefaultAsync() in GetApplicationDefaultAsync() 76 public static ChannelCredentials ToChannelCredentials(this ITokenAccess googleCredential) in ToChannelCredentials() 78 … return ChannelCredentials.Create(new SslCredentials(), googleCredential.ToCallCredentials()); in ToChannelCredentials()
|
/third_party/grpc/src/php/tests/MemoryLeakTest/ |
D | MemoryLeakTest.php | 50 $channel = new Grpc\Channel('localhost:50101', ['credentials' => Grpc\ChannelCredentials::createIns… 62 $channel = new Grpc\Channel('localhost:50102', ['credentials' => Grpc\ChannelCredentials::createIns… 68 $channel = new Grpc\Channel('localhost:50103', ['credentials' => Grpc\ChannelCredentials::createIns…
|
/third_party/grpc/src/python/grpcio_tests/tests/unit/ |
D | _credentials_test.py | 52 self.assertIsInstance(channel_and_first, grpc.ChannelCredentials) 53 self.assertIsInstance(channel_first_and_second, grpc.ChannelCredentials) 55 grpc.ChannelCredentials)
|
/third_party/grpc/test/cpp/util/ |
D | cli_credentials.cc | 114 std::shared_ptr<grpc::ChannelCredentials> 160 return std::shared_ptr<grpc::ChannelCredentials>(); in GetChannelCredentials() 179 std::shared_ptr<grpc::ChannelCredentials> CliCredentials::GetCredentials() in GetCredentials() 210 std::shared_ptr<grpc::ChannelCredentials> channel_creds = in GetCredentials()
|