Home
last modified time | relevance | path

Searched refs:CallCredentials (Results 1 – 25 of 64) 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/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/
Dcredentials.h39 class CallCredentials; variable
77 const std::shared_ptr<CallCredentials>& call_creds);
126 class CallCredentials : private grpc::GrpcLibraryCodegen {
128 CallCredentials();
129 ~CallCredentials() override;
140 const std::shared_ptr<CallCredentials>& call_creds);
142 friend std::shared_ptr<CallCredentials> CompositeCallCredentials(
143 const std::shared_ptr<CallCredentials>& creds1,
144 const std::shared_ptr<CallCredentials>& creds2);
191 std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials();
[all …]
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/security/
Dcredentials.h39 class CallCredentials; variable
77 const std::shared_ptr<CallCredentials>& call_creds);
126 class CallCredentials : private grpc::GrpcLibraryCodegen {
128 CallCredentials();
129 ~CallCredentials() override;
140 const std::shared_ptr<CallCredentials>& call_creds);
142 friend std::shared_ptr<CallCredentials> CompositeCallCredentials(
143 const std::shared_ptr<CallCredentials>& creds1,
144 const std::shared_ptr<CallCredentials>& creds2);
191 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-java/core/src/test/java/io/grpc/internal/
DCallCredentialsApplyingTest.java32 import io.grpc.CallCredentials;
69 private CallCredentials mockCreds;
130 any(CallCredentials.MetadataApplier.class)); in parameterPropagation_base()
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()
150 any(CallCredentials.MetadataApplier.class)); 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()
[all …]
/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/
Dcredentials_cc.cc29 CallCredentials::CallCredentials() { g_gli_initializer.summon(); } in CallCredentials() function in grpc::CallCredentials
31 CallCredentials::~CallCredentials() {} in ~CallCredentials()
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 …]
/external/rust/crates/grpcio-sys/grpc/src/cpp/client/
Dcredentials_cc.cc29 CallCredentials::CallCredentials() { g_gli_initializer.summon(); } in CallCredentials() function in grpc::CallCredentials
31 CallCredentials::~CallCredentials() {} in ~CallCredentials()
Dsecure_credentials.cc98 std::shared_ptr<CallCredentials> WrapCallCredentials( in WrapCallCredentials()
101 : std::shared_ptr<CallCredentials>( in WrapCallCredentials()
114 std::shared_ptr<CallCredentials> ExternalAccountCredentials( in ExternalAccountCredentials()
266 std::shared_ptr<CallCredentials> StsCredentials( in StsCredentials()
272 std::shared_ptr<CallCredentials> MetadataCredentialsFromPlugin( in MetadataCredentialsFromPlugin()
319 std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials() { in GoogleComputeEngineCredentials()
326 std::shared_ptr<CallCredentials> ServiceAccountJWTAccessCredentials( in ServiceAccountJWTAccessCredentials()
341 std::shared_ptr<CallCredentials> GoogleRefreshTokenCredentials( in GoogleRefreshTokenCredentials()
349 std::shared_ptr<CallCredentials> AccessTokenCredentials( in AccessTokenCredentials()
357 std::shared_ptr<CallCredentials> GoogleIAMCredentials( in GoogleIAMCredentials()
[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;
78 CallCredentials creds = callOptions.getCredentials(); in newStream()
83 .set(CallCredentials.ATTR_AUTHORITY, authority) in newStream()
84 .set(CallCredentials.ATTR_SECURITY_LEVEL, SecurityLevel.NONE) in newStream()
87 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/core/src/main/java/io/grpc/
DCallCredentials2.java32 public abstract class CallCredentials2 implements CallCredentials {
57 Executor appExecutor, final CallCredentials.MetadataApplier applier) { in applyRequestMetadata()
98 public abstract static class MetadataApplier implements CallCredentials.MetadataApplier {}
/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-java/alts/src/main/java/io/grpc/alts/
DGoogleDefaultChannelBuilder.java21 import io.grpc.CallCredentials;
82 @Nullable CallCredentials credentials = null; in build()
138 @Nullable private final CallCredentials credentials;
141 public GoogleDefaultInterceptor(@Nullable CallCredentials credentials, Status status) { in GoogleDefaultInterceptor()
/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()

123