Home
last modified time | relevance | path

Searched refs:ChannelCredentials (Results 1 – 25 of 117) sorted by relevance

12345

/third_party/grpc/src/php/tests/unit_tests/
DChannelTest.php36 ['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 …]
DChannelCredentialsTest.php32 $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 …]
DInterceptorTest.php226 '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/
Dcredentials.h42 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 …]
Dcredentials_impl.h40 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 …]
Dcronet_credentials.h26 class ChannelCredentials; variable
29 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine);
Dcronet_credentials_impl.h26 class ChannelCredentials; variable
29 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine);
/third_party/grpc/src/csharp/Grpc.Core.Api/
DChannelCredentials.cs31 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/
Dchannel_credentials_spec.rb18 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/
Dchannel_credentials.c93 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/
DChannelTest.cs33 …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 …]
DChannelCredentialsTest.cs30 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/
DDefaultChannelCredentialsConfigurator.cs39 …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/
Dcredentials_cc.cc25 ChannelCredentials::ChannelCredentials() { g_gli_initializer.summon(); } in ChannelCredentials() function in grpc::ChannelCredentials
27 ChannelCredentials::~ChannelCredentials() {} in ~ChannelCredentials()
Dinsecure_credentials.cc30 class InsecureChannelCredentialsImpl final : public ChannelCredentials {
60 std::shared_ptr<ChannelCredentials> InsecureChannelCredentials() { in InsecureChannelCredentials()
61 return std::shared_ptr<ChannelCredentials>( in InsecureChannelCredentials()
Dcronet_credentials.cc28 class CronetChannelCredentialsImpl final : public ChannelCredentials {
59 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine) { in CronetChannelCredentials()
60 return std::shared_ptr<ChannelCredentials>( in CronetChannelCredentials()
Dcreate_channel.cc32 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/
Dcredentials.pxd.pxi52 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/
DPersistentChannelTest.php253 $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/
Dcreate_channel.h39 const std::shared_ptr<ChannelCredentials>& creds);
53 const std::shared_ptr<ChannelCredentials>& creds,
70 const std::shared_ptr<ChannelCredentials>& creds,
Dcreate_channel_impl.h39 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/
DGoogleGrpcCredentials.cs41 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/
DMemoryLeakTest.php50 $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.py52 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/
Dcli_credentials.cc114 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()

12345