Home
last modified time | relevance | path

Searched refs:CallCredentials (Results 1 – 25 of 61) sorted by relevance

123

/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h38 class CallCredentials; variable
55 const std::shared_ptr<CallCredentials>& call_creds);
73 class CallCredentials : private GrpcLibraryCodegen {
75 CallCredentials();
76 ~CallCredentials();
84 const std::shared_ptr<CallCredentials>& call_creds);
86 friend std::shared_ptr<CallCredentials> CompositeCallCredentials(
87 const std::shared_ptr<CallCredentials>& creds1,
88 const std::shared_ptr<CallCredentials>& creds2);
135 std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials();
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core/
DCallCredentials.cs31 public abstract class CallCredentials class
39 public static CallCredentials Compose(params CallCredentials[] credentials) in Compose()
49 public static CallCredentials FromInterceptor(AsyncAuthInterceptor interceptor) in FromInterceptor()
65 internal sealed class MetadataCredentials : CallCredentials
88 internal sealed class CompositeCallCredentials : CallCredentials
90 readonly List<CallCredentials> credentials;
97 public CompositeCallCredentials(params CallCredentials[] credentials) in CompositeCallCredentials()
100 this.credentials = new List<CallCredentials>(credentials); in CompositeCallCredentials()
DCallOptions.cs37 CallCredentials credentials;
50 …riteOptions = null, ContextPropagationToken propagationToken = null, CallCredentials credentials =… in CallOptions()
110 public CallCredentials Credentials
198 public CallOptions WithCredentials(CallCredentials credentials) in WithCredentials()
DChannelCredentials.cs67 …tic ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials callCredentia… in Create()
185 readonly CallCredentials callCredentials;
193 …public CompositeChannelCredentials(ChannelCredentials channelCredentials, CallCredentials callCred… in CompositeChannelCredentials()
/external/grpc-grpc/src/ruby/spec/
Dcall_credentials_spec.rb18 CallCredentials = GRPC::Core::CallCredentials constant
24 expect { CallCredentials.new(auth_proc) }.not_to raise_error
30 creds1 = CallCredentials.new(auth_proc)
31 creds2 = CallCredentials.new(auth_proc)
36 creds1 = CallCredentials.new(auth_proc)
37 creds2 = CallCredentials.new(auth_proc)
38 creds3 = CallCredentials.new(auth_proc)
Dchannel_credentials_spec.rb19 CallCredentials = GRPC::Core::CallCredentials constant
60 call_creds = CallCredentials.new auth_proc
68 call_creds1 = CallCredentials.new auth_proc
69 call_creds2 = CallCredentials.new auth_proc
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DMetadataCredentialsTest.cs75 CallCredentials.FromInterceptor(asyncAuthInterceptor)); in MetadataCredentials()
88 var callCredentials = CallCredentials.FromInterceptor(asyncAuthInterceptor); in MetadataCredentials_PerCall()
95 … var first = CallCredentials.FromInterceptor(new AsyncAuthInterceptor((context, metadata) => { in MetadataCredentials_Composed()
100 … var second = CallCredentials.FromInterceptor(new AsyncAuthInterceptor((context, metadata) => { in MetadataCredentials_Composed()
104 … var third = CallCredentials.FromInterceptor(new AsyncAuthInterceptor((context, metadata) => { in MetadataCredentials_Composed()
109 CallCredentials.Compose(first, second, third)); in MetadataCredentials_Composed()
122 … var first = CallCredentials.FromInterceptor(new AsyncAuthInterceptor((context, metadata) => { in MetadataCredentials_ComposedPerCall()
126 … var second = CallCredentials.FromInterceptor(new AsyncAuthInterceptor((context, metadata) => { in MetadataCredentials_ComposedPerCall()
130 … var third = CallCredentials.FromInterceptor(new AsyncAuthInterceptor((context, metadata) => { in MetadataCredentials_ComposedPerCall()
135 new CallOptions(credentials: CallCredentials.Compose(first, second, third))); in MetadataCredentials_ComposedPerCall()
[all …]
/external/grpc-grpc/src/cpp/client/
Dsecure_credentials.cc64 std::shared_ptr<CallCredentials> WrapCallCredentials( in WrapCallCredentials()
67 : std::shared_ptr<CallCredentials>( in WrapCallCredentials()
120 std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials() { in GoogleComputeEngineCredentials()
127 std::shared_ptr<CallCredentials> ServiceAccountJWTAccessCredentials( in ServiceAccountJWTAccessCredentials()
142 std::shared_ptr<CallCredentials> GoogleRefreshTokenCredentials( in GoogleRefreshTokenCredentials()
150 std::shared_ptr<CallCredentials> AccessTokenCredentials( in AccessTokenCredentials()
158 std::shared_ptr<CallCredentials> GoogleIAMCredentials( in GoogleIAMCredentials()
170 const std::shared_ptr<CallCredentials>& call_creds) { in CompositeChannelCredentials()
185 std::shared_ptr<CallCredentials> CompositeCallCredentials( in CompositeCallCredentials()
186 const std::shared_ptr<CallCredentials>& creds1, in CompositeCallCredentials()
[all …]
Dcredentials_cc.cc29 CallCredentials::CallCredentials() { g_gli_initializer.summon(); } in CallCredentials() function in grpc::CallCredentials
31 CallCredentials::~CallCredentials() {} in ~CallCredentials()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DCallCredentialsApplyingTest.java32 import io.grpc.CallCredentials;
33 import io.grpc.CallCredentials.MetadataApplier;
69 private CallCredentials mockCreds;
133 assertSame(AUTHORITY, attrs.get(CallCredentials.ATTR_AUTHORITY)); in parameterPropagation_base()
134 assertSame(SecurityLevel.NONE, attrs.get(CallCredentials.ATTR_SECURITY_LEVEL)); in parameterPropagation_base()
141 .set(CallCredentials.ATTR_AUTHORITY, "transport-override-authority") in parameterPropagation_overrideByTransport()
142 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.INTEGRITY) in parameterPropagation_overrideByTransport()
153 assertEquals("transport-override-authority", attrs.get(CallCredentials.ATTR_AUTHORITY)); in parameterPropagation_overrideByTransport()
154 assertSame(SecurityLevel.INTEGRITY, attrs.get(CallCredentials.ATTR_SECURITY_LEVEL)); in parameterPropagation_overrideByTransport()
161 .set(CallCredentials.ATTR_AUTHORITY, "transport-override-authority") in parameterPropagation_overrideByCallOptions()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DCallCredentialsTest.cs36 …Assert.Throws(typeof(ArgumentException), () => CallCredentials.Compose(new FakeCallCredentials())); in CallCredentials_ComposeAtLeastTwo()
42 var composite = CallCredentials.Compose( in CallCredentials_ToNativeCredentials()
43 CallCredentials.FromInterceptor(async (uri, m) => { await Task.Delay(1); }), in CallCredentials_ToNativeCredentials()
44 CallCredentials.FromInterceptor(async (uri, m) => { await Task.Delay(2); })); in CallCredentials_ToNativeCredentials()
/external/grpc-grpc/src/csharp/Grpc.Auth/
DGoogleGrpcCredentials.cs53 public static CallCredentials FromAccessToken(string accessToken) in FromAccessToken()
55 … return CallCredentials.FromInterceptor(GoogleAuthInterceptors.FromAccessToken(accessToken)); in FromAccessToken()
64 public static CallCredentials ToCallCredentials(this ITokenAccess credential) in ToCallCredentials()
66 … return CallCredentials.FromInterceptor(GoogleAuthInterceptors.FromCredential(credential)); in ToCallCredentials()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCallCredentialsApplyingTransportFactory.java23 import io.grpc.CallCredentials;
77 CallCredentials creds = callOptions.getCredentials(); in newStream()
82 .set(CallCredentials.ATTR_AUTHORITY, authority) in newStream()
83 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.NONE) in newStream()
86 effectiveAttrsBuilder.set(CallCredentials.ATTR_AUTHORITY, callOptions.getAuthority()); in newStream()
/external/grpc-grpc/test/cpp/util/
Dcreate_test_channel.h45 const std::shared_ptr<CallCredentials>& creds);
50 const std::shared_ptr<CallCredentials>& creds,
56 const std::shared_ptr<CallCredentials>& creds,
61 const std::shared_ptr<CallCredentials>& creds);
Dcreate_test_channel.cc72 const std::shared_ptr<CallCredentials>& creds, in CreateTestChannel()
111 const std::shared_ptr<CallCredentials>& creds, in CreateTestChannel()
125 const std::shared_ptr<CallCredentials>& creds) { in CreateTestChannel()
134 use_prod_roots, std::shared_ptr<CallCredentials>()); in CreateTestChannel()
145 const std::shared_ptr<CallCredentials>& creds) { in CreateTestChannel()
Dcli_credentials.cc149 std::shared_ptr<grpc::CallCredentials> CliCredentials::GetCallCredentials() in GetCallCredentials()
156 return std::shared_ptr<grpc::CallCredentials>(); in GetCallCredentials()
162 return std::shared_ptr<grpc::CallCredentials>(); in GetCallCredentials()
199 std::shared_ptr<grpc::CallCredentials> call_creds = GetCallCredentials(); in GetCredentials()
/external/grpc-grpc/src/php/tests/unit_tests/
DCallCredentialsTest.php26 $this->call_credentials = Grpc\CallCredentials::createFromPlugin(
131 $call_credentials2 = Grpc\CallCredentials::createFromPlugin(
133 $call_credentials3 = Grpc\CallCredentials::createComposite(
146 $call_credentials = Grpc\CallCredentials::createFromPlugin(
156 $call_credentials3 = Grpc\CallCredentials::createComposite(
/external/grpc-grpc-java/auth/src/test/java/io/grpc/auth/
DGoogleAuthLibraryCallCredentialsTest.java42 import io.grpc.CallCredentials;
43 import io.grpc.CallCredentials.MetadataApplier;
110 .set(CallCredentials.ATTR_AUTHORITY, authority)
111 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.PRIVACY_AND_INTEGRITY)
260 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.NONE) in oauth2Credential()
280 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.PRIVACY_AND_INTEGRITY) in googleCredential_privacyAndIntegrityAllowed()
301 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.INTEGRITY) in googleCredential_integrityDenied()
321 .set(CallCredentials.ATTR_SECURITY_LEVEL, null) in googleCredential_nullSecurityDenied()
341 .set(CallCredentials.ATTR_AUTHORITY, "example.com:443") in serviceUri()
349 .set(CallCredentials.ATTR_AUTHORITY, "example.com:123") in serviceUri()
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/
DGoogleDefaultChannelBuilder.java23 import io.grpc.CallCredentials;
114 @Nullable CallCredentials credentials = null; in build()
178 @Nullable private final CallCredentials credentials;
181 public GoogleDefaultInterceptor(@Nullable CallCredentials credentials, Status status) {
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DMoreCallCredentials.java20 import io.grpc.CallCredentials;
34 public static CallCredentials from(Credentials creds) { in from()
/external/grpc-grpc/test/cpp/client/
Dcredentials_test.cc34 std::shared_ptr<CallCredentials> bad1 = GoogleRefreshTokenCredentials(""); in TEST_F()
35 EXPECT_EQ(static_cast<CallCredentials*>(nullptr), bad1.get()); in TEST_F()
/external/grpc-grpc/src/php/ext/grpc/
Dcall_credentials.c68 PHP_METHOD(CallCredentials, createComposite) { in PHP_METHOD() argument
97 PHP_METHOD(CallCredentials, createFromPlugin) { in PHP_METHOD() argument
247 PHP_ME(CallCredentials, createComposite, arginfo_createComposite,
249 PHP_ME(CallCredentials, createFromPlugin, arginfo_createFromPlugin,
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_implementations_test.py47 self.assertIsInstance(call_creds, implementations.CallCredentials)
51 self.assertIsInstance(call_creds, implementations.CallCredentials)
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_credentials_test.py32 self.assertIsInstance(first_and_second, grpc.CallCredentials)
33 self.assertIsInstance(first_second_and_third, grpc.CallCredentials)
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientTransportTest.java28 import io.grpc.CallCredentials;
85 assertEquals(AUTHORITY, attrs.get(CallCredentials.ATTR_AUTHORITY)); in transportAttributes()
87 SecurityLevel.PRIVACY_AND_INTEGRITY, attrs.get(CallCredentials.ATTR_SECURITY_LEVEL)); in transportAttributes()

123