local_credentials.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
20 
22 
23 #include <utility>
24 
25 #include "absl/strings/string_view.h"
26 
27 #include <grpc/grpc.h>
28 
30 
34  const char* target_name, const grpc_channel_args* args,
35  grpc_channel_args** /*new_args*/) {
37  this->Ref(), std::move(request_metadata_creds), args, target_name);
38 }
39 
41  static grpc_core::UniqueTypeName::Factory kFactory("Local");
42  return kFactory.Create();
43 }
44 
47  const grpc_channel_args* /* args */) {
49 }
50 
52  static grpc_core::UniqueTypeName::Factory kFactory("Local");
53  return kFactory.Create();
54 }
55 
57  grpc_local_connect_type connect_type)
58  : connect_type_(connect_type) {}
59 
61  grpc_local_connect_type connect_type) {
62  return new grpc_local_credentials(connect_type);
63 }
64 
66  grpc_local_connect_type connect_type)
67  : connect_type_(connect_type) {}
68 
70  grpc_local_connect_type connect_type) {
71  return new grpc_local_server_credentials(connect_type);
72 }
grpc_core::UniqueTypeName::Factory::Create
UniqueTypeName Create()
Definition: unique_type_name.h:67
grpc_local_credentials_create
grpc_channel_credentials * grpc_local_credentials_create(grpc_local_connect_type connect_type)
Definition: local_credentials.cc:60
local_security_connector.h
grpc_channel_args
Definition: grpc_types.h:132
grpc_local_credentials::create_security_connector
grpc_core::RefCountedPtr< grpc_channel_security_connector > create_security_connector(grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name, const grpc_channel_args *args, grpc_channel_args **new_args) override
Definition: local_credentials.cc:32
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
grpc_core::RefCountedPtr< grpc_channel_security_connector >
absl::move
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
Definition: abseil-cpp/absl/utility/utility.h:221
grpc_local_server_credentials::create_security_connector
grpc_core::RefCountedPtr< grpc_server_security_connector > create_security_connector(const grpc_channel_args *) override
Definition: local_credentials.cc:46
grpc_local_credentials::type
grpc_core::UniqueTypeName type() const override
Definition: local_credentials.cc:40
grpc.h
grpc_local_credentials
Definition: local_credentials.h:36
grpc_local_server_credentials::type
grpc_core::UniqueTypeName type() const override
Definition: local_credentials.cc:51
grpc_local_server_security_connector_create
grpc_core::RefCountedPtr< grpc_server_security_connector > grpc_local_server_security_connector_create(grpc_core::RefCountedPtr< grpc_server_credentials > server_creds)
Definition: local_security_connector.cc:298
grpc_local_server_credentials
Definition: local_credentials.h:62
grpc_server_credentials
Definition: src/core/lib/security/credentials/credentials.h:259
grpc_core::UniqueTypeName
Definition: unique_type_name.h:56
local_credentials.h
grpc_local_channel_security_connector_create
grpc_core::RefCountedPtr< grpc_channel_security_connector > grpc_local_channel_security_connector_create(grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds, const grpc_channel_args *args, const char *target_name)
Definition: local_security_connector.cc:266
grpc_local_credentials::grpc_local_credentials
grpc_local_credentials(grpc_local_connect_type connect_type)
Definition: local_credentials.cc:56
grpc_local_connect_type
grpc_local_connect_type
Definition: grpc_security_constants.h:143
grpc_core::UniqueTypeName::Factory
Definition: unique_type_name.h:60
grpc_local_server_credentials::grpc_local_server_credentials
grpc_local_server_credentials(grpc_local_connect_type connect_type)
Definition: local_credentials.cc:65
grpc_channel_credentials
Definition: src/core/lib/security/credentials/credentials.h:96
grpc_core::RefCounted< grpc_channel_credentials >::Ref
RefCountedPtr< grpc_channel_credentials > Ref() GRPC_MUST_USE_RESULT
Definition: ref_counted.h:287
grpc_local_server_credentials_create
grpc_server_credentials * grpc_local_server_credentials_create(grpc_local_connect_type connect_type)
Definition: local_credentials.cc:69
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:16