Home
last modified time | relevance | path

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

123

/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h47 class ChannelCredentials : private GrpcLibraryCodegen {
49 ChannelCredentials();
50 ~ChannelCredentials();
53 friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials(
54 const std::shared_ptr<ChannelCredentials>& channel_creds,
62 const std::shared_ptr<ChannelCredentials>& creds,
82 friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials(
83 const std::shared_ptr<ChannelCredentials>& channel_creds,
123 std::shared_ptr<ChannelCredentials> GoogleDefaultCredentials();
126 std::shared_ptr<ChannelCredentials> SslCredentials(
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core/
DChannelCredentials.cs31 public abstract class ChannelCredentials class
33 static readonly ChannelCredentials InsecureInstance = new InsecureCredentialsImpl();
39 public ChannelCredentials() in ChannelCredentials() method in Grpc.Core.ChannelCredentials
52 public static ChannelCredentials Insecure
67 …public static ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials cal… in Create()
98 private sealed class InsecureCredentialsImpl : ChannelCredentials
110 public sealed class SslCredentials : ChannelCredentials
182 internal sealed class CompositeChannelCredentials : ChannelCredentials
184 readonly ChannelCredentials channelCredentials;
193 …public CompositeChannelCredentials(ChannelCredentials channelCredentials, CallCredentials callCred… in CompositeChannelCredentials()
DChannel.cs55 public Channel(string target, ChannelCredentials credentials) : in Channel()
67 … public Channel(string target, ChannelCredentials credentials, IEnumerable<ChannelOption> options) in Channel()
96 public Channel(string host, int port, ChannelCredentials credentials) : in Channel()
108 …public Channel(string host, int port, ChannelCredentials credentials, IEnumerable<ChannelOption> o… in Channel()
/external/grpc-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) }
58 channel_creds = ChannelCredentials.new(*certs)
66 channel_creds = ChannelCredentials.new(*certs)
77 channel_creds1 = ChannelCredentials.new(*certs)
78 channel_creds2 = ChannelCredentials.new(*certs)
/external/grpc-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()
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 …Assert.Throws(typeof(ArgumentException), () => ChannelCredentials.Create(new FakeChannelCredential… in ChannelCredentials_CreateComposite()
65 internal class ChannelCredentialsWithCreateNativeThrows : ChannelCredentials
DShutdownHookClientTest.cs38 var channel = new Channel(Host, 1000, ChannelCredentials.Insecure); in ProcessExitHookCanCleanupAbandonedChannels()
39 var channel2 = new Channel(Host, 1001, ChannelCredentials.Insecure); in ProcessExitHookCanCleanupAbandonedChannels()
/external/grpc-grpc/src/php/tests/unit_tests/
DChannelTest.php36 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
43 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
51 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
59 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
67 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
75 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
83 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
97 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
144 ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
154 ['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();
54 $channel_credentials = Grpc\ChannelCredentials::createSsl([]);
62 $channel_credentials = Grpc\ChannelCredentials::createComposite(
DInterceptorTest.php216 'credentials' => Grpc\ChannelCredentials::createInsecure()]);
234 'credentials' => Grpc\ChannelCredentials::createInsecure(),
263 'credentials' => Grpc\ChannelCredentials::createInsecure(),
289 'credentials' => Grpc\ChannelCredentials::createInsecure(),
319 'credentials' => Grpc\ChannelCredentials::createInsecure(),
370 'credentials' => Grpc\ChannelCredentials::createInsecure(),
392 'credentials' => Grpc\ChannelCredentials::createInsecure()
407 'credentials' => Grpc\ChannelCredentials::createInsecure()
426 'credentials' => Grpc\ChannelCredentials::createInsecure()
440 'credentials' => Grpc\ChannelCredentials::createInsecure()
/external/grpc-grpc/src/php/ext/grpc/
Dchannel_credentials.c88 PHP_METHOD(ChannelCredentials, setDefaultRootsPem) { in PHP_METHOD() argument
107 PHP_METHOD(ChannelCredentials, createDefault) { in PHP_METHOD() argument
123 PHP_METHOD(ChannelCredentials, createSsl) { in PHP_METHOD() argument
174 PHP_METHOD(ChannelCredentials, createComposite) { in PHP_METHOD() argument
209 PHP_METHOD(ChannelCredentials, createInsecure) { in PHP_METHOD() argument
235 PHP_ME(ChannelCredentials, setDefaultRootsPem, arginfo_setDefaultRootsPem,
237 PHP_ME(ChannelCredentials, createDefault, arginfo_createDefault,
239 PHP_ME(ChannelCredentials, createSsl, arginfo_createSsl,
241 PHP_ME(ChannelCredentials, createComposite, arginfo_createComposite,
243 PHP_ME(ChannelCredentials, createInsecure, arginfo_createInsecure,
/external/grpc-grpc/src/cpp/client/
Dcredentials_cc.cc25 ChannelCredentials::ChannelCredentials() { g_gli_initializer.summon(); } in ChannelCredentials() function in grpc::ChannelCredentials
27 ChannelCredentials::~ChannelCredentials() {} in ~ChannelCredentials()
Dsecure_credentials.cc57 std::shared_ptr<ChannelCredentials> WrapChannelCredentials( in WrapChannelCredentials()
60 : std::shared_ptr<ChannelCredentials>( in WrapChannelCredentials()
72 std::shared_ptr<ChannelCredentials> GoogleDefaultCredentials() { in GoogleDefaultCredentials()
78 std::shared_ptr<ChannelCredentials> SslCredentials( in SslCredentials()
94 std::shared_ptr<ChannelCredentials> AltsCredentials( in AltsCredentials()
111 std::shared_ptr<ChannelCredentials> LocalCredentials( in LocalCredentials()
168 std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( in CompositeChannelCredentials()
169 const std::shared_ptr<ChannelCredentials>& channel_creds, in CompositeChannelCredentials()
Dinsecure_credentials.cc31 class InsecureChannelCredentialsImpl final : public ChannelCredentials {
46 std::shared_ptr<ChannelCredentials> InsecureChannelCredentials() { in InsecureChannelCredentials()
47 return std::shared_ptr<ChannelCredentials>( in InsecureChannelCredentials()
Dcronet_credentials.cc28 class CronetChannelCredentialsImpl final : public ChannelCredentials {
47 std::shared_ptr<ChannelCredentials> CronetChannelCredentials(void* engine) { in CronetChannelCredentials()
48 return std::shared_ptr<ChannelCredentials>( in CronetChannelCredentials()
Dcreate_channel.cc33 const std::shared_ptr<ChannelCredentials>& creds) { in CreateChannel()
39 const std::shared_ptr<ChannelCredentials>& creds, in CreateCustomChannel()
/external/grpc-grpc/src/php/tests/unit_tests/PersistentChannelTests/
DPersistentChannelTest.php254 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
281 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
304 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
328 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
352 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
372 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
381 $channel_credentials = Grpc\ChannelCredentials::createSsl("a", null,
401 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
410 $channel_credentials = Grpc\ChannelCredentials::createSsl("a", null,
430 $channel_credentials = Grpc\ChannelCredentials::createSsl(null, null,
[all …]
/external/grpc-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()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_credentials_test.py50 self.assertIsInstance(channel_and_first, grpc.ChannelCredentials)
51 self.assertIsInstance(channel_first_and_second, grpc.ChannelCredentials)
53 grpc.ChannelCredentials)
/external/grpc-grpc/test/cpp/util/
Dcli_credentials.cc110 std::shared_ptr<grpc::ChannelCredentials>
146 return std::shared_ptr<grpc::ChannelCredentials>(); in GetChannelCredentials()
165 std::shared_ptr<grpc::ChannelCredentials> CliCredentials::GetCredentials() in GetCredentials()
196 std::shared_ptr<grpc::ChannelCredentials> channel_creds = in GetCredentials()
Dcli_credentials.h31 std::shared_ptr<grpc::ChannelCredentials> GetCredentials() const;
44 virtual std::shared_ptr<grpc::ChannelCredentials> GetChannelCredentials()
Dtest_credentials_provider.h43 virtual std::shared_ptr<ChannelCredentials> GetChannelCredentials(
61 virtual std::shared_ptr<ChannelCredentials> GetChannelCredentials(
/external/grpc-grpc/src/php/tests/qps/
Dclient.php71 $proxystubopts['credentials'] = Grpc\ChannelCredentials::createInsecure();
84 $stubopts['credentials'] = Grpc\ChannelCredentials::createSsl(
87 $stubopts['credentials'] = Grpc\ChannelCredentials::createSsl(null);
95 $stubopts['credentials'] = Grpc\ChannelCredentials::createInsecure();
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dcredentials.pxd.pxi52 cdef class ChannelCredentials: class
65 cdef class SSLChannelCredentials(ChannelCredentials):
74 cdef class CompositeChannelCredentials(ChannelCredentials):
77 cdef readonly ChannelCredentials _channel_credentials
/external/grpc-grpc/include/grpcpp/
Dcreate_channel.h39 const std::shared_ptr<ChannelCredentials>& creds);
53 const std::shared_ptr<ChannelCredentials>& creds,

123