GRPC C++  1.39.1
alts_security_connector.h
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 
19 #ifndef GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_ALTS_ALTS_SECURITY_CONNECTOR_H
20 #define GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_ALTS_ALTS_SECURITY_CONNECTOR_H
21 
23 
26 
27 #define GRPC_ALTS_TRANSPORT_SECURITY_TYPE "alts"
28 #define GRPC_ALTS_URL_SCHEME "https"
29 
46  const char* target_name);
47 
60 
61 /* Initializes rpc_versions. */
63  grpc_gcp_rpc_protocol_versions* rpc_versions);
64 
65 namespace grpc_core {
66 namespace internal {
67 
68 /* Exposed only for testing. */
71 
72 } // namespace internal
73 } // namespace grpc_core
74 
75 #endif /* GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_ALTS_ALTS_SECURITY_CONNECTOR_H \
76  */
grpc_core::RefCountedPtr< grpc_channel_security_connector > grpc_alts_channel_security_connector_create(grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name)
This method creates an ALTS channel security connector.
Definition: alts_security_connector.cc:286
grpc_core::RefCountedPtr< grpc_server_security_connector > grpc_alts_server_security_connector_create(grpc_core::RefCountedPtr< grpc_server_credentials > server_creds)
This method creates an ALTS server security connector.
Definition: alts_security_connector.cc:301
void grpc_alts_set_rpc_protocol_versions(grpc_gcp_rpc_protocol_versions *rpc_versions)
Definition: alts_security_connector.cc:39
Definition: ref_counted_ptr.h:35
grpc_core::RefCountedPtr< grpc_auth_context > grpc_alts_auth_context_from_tsi_peer(const tsi_peer *peer)
Definition: alts_security_connector.cc:191
Round Robin Policy.
Definition: backend_metric.cc:26
Definition: transport_security_common_api.h:38
Definition: transport_security_interface.h:216