alts_credentials.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_CREDENTIALS_ALTS_ALTS_CREDENTIALS_H
20 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_ALTS_ALTS_CREDENTIALS_H
21 
23 
24 #include <grpc/grpc.h>
25 #include <grpc/grpc_security.h>
27 
33 
34 /* Main struct for grpc ALTS channel credential. */
36  public:
38  const char* handshaker_service_url);
39  ~grpc_alts_credentials() override;
40 
44  const char* target_name, const grpc_channel_args* args,
45  grpc_channel_args** new_args) override;
46 
47  grpc_core::UniqueTypeName type() const override;
48 
49  const grpc_alts_credentials_options* options() const { return options_; }
51  const char* handshaker_service_url() const { return handshaker_service_url_; }
52 
53  private:
54  int cmp_impl(const grpc_channel_credentials* other) const override {
55  // TODO(yashykt): Check if we can do something better here
57  static_cast<const grpc_channel_credentials*>(this), other);
58  }
59 
62 };
63 
64 /* Main struct for grpc ALTS server credential. */
66  public:
68  const char* handshaker_service_url);
70 
72  create_security_connector(const grpc_channel_args* /* args */) override;
73 
74  grpc_core::UniqueTypeName type() const override;
75 
76  const grpc_alts_credentials_options* options() const { return options_; }
78  const char* handshaker_service_url() const { return handshaker_service_url_; }
79 
80  private:
83 };
84 
103  const char* handshaker_service_url, bool enable_untrusted_alts);
104 
122  const char* handshaker_service_url, bool enable_untrusted_alts);
123 
124 #endif /* GRPC_CORE_LIB_SECURITY_CREDENTIALS_ALTS_ALTS_CREDENTIALS_H */
grpc_alts_credentials
Definition: alts_credentials.h:35
grpc_alts_server_credentials::handshaker_service_url_
char * handshaker_service_url_
Definition: alts_credentials.h:82
options
double_dict options[]
Definition: capstone_test.c:55
useful.h
grpc_alts_server_credentials_create_customized
grpc_server_credentials * grpc_alts_server_credentials_create_customized(const grpc_alts_credentials_options *options, const char *handshaker_service_url, bool enable_untrusted_alts)
Definition: alts_credentials.cc:101
grpc_alts_server_credentials::options_
grpc_alts_credentials_options * options_
Definition: alts_credentials.h:81
grpc_alts_credentials::options
const grpc_alts_credentials_options * options() const
Definition: alts_credentials.h:49
grpc_alts_credentials::create_security_connector
grpc_core::RefCountedPtr< grpc_channel_security_connector > create_security_connector(grpc_core::RefCountedPtr< grpc_call_credentials > call_creds, const char *target_name, const grpc_channel_args *args, grpc_channel_args **new_args) override
Definition: alts_credentials.cc:53
grpc_alts_credentials::~grpc_alts_credentials
~grpc_alts_credentials() override
Definition: alts_credentials.cc:47
grpc_security.h
grpc_alts_server_credentials::mutable_options
grpc_alts_credentials_options * mutable_options()
Definition: alts_credentials.h:77
grpc_alts_server_credentials
Definition: alts_credentials.h:65
grpc_alts_credentials::handshaker_service_url
const char * handshaker_service_url() const
Definition: alts_credentials.h:51
credentials.h
grpc_channel_args
Definition: grpc_types.h:132
grpc_types.h
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
grpc_core::RefCountedPtr< grpc_channel_security_connector >
grpc_alts_server_credentials::handshaker_service_url
const char * handshaker_service_url() const
Definition: alts_credentials.h:78
grpc_alts_server_credentials::options
const grpc_alts_credentials_options * options() const
Definition: alts_credentials.h:76
grpc.h
security_connector.h
call_creds
void call_creds(grpc_end2end_test_config config)
Definition: call_creds.cc:523
grpc_alts_credentials::handshaker_service_url_
char * handshaker_service_url_
Definition: alts_credentials.h:61
grpc_alts_credentials_create_customized
grpc_channel_credentials * grpc_alts_credentials_create_customized(const grpc_alts_credentials_options *options, const char *handshaker_service_url, bool enable_untrusted_alts)
Definition: alts_credentials.cc:92
grpc_alts_server_credentials::type
grpc_core::UniqueTypeName type() const override
Definition: alts_credentials.cc:87
grpc_server_credentials
Definition: src/core/lib/security/credentials/credentials.h:259
grpc_alts_credentials_options
Definition: grpc_alts_credentials_options.h:35
grpc_alts_credentials::type
grpc_core::UniqueTypeName type() const override
Definition: alts_credentials.cc:61
grpc_core::UniqueTypeName
Definition: unique_type_name.h:56
grpc_core::QsortCompare
int QsortCompare(const T &a, const T &b)
Definition: useful.h:95
grpc_alts_credentials::cmp_impl
int cmp_impl(const grpc_channel_credentials *other) const override
Definition: alts_credentials.h:54
grpc_alts_server_credentials::grpc_alts_server_credentials
grpc_alts_server_credentials(const grpc_alts_credentials_options *options, const char *handshaker_service_url)
Definition: alts_credentials.cc:66
unique_type_name.h
ref_counted_ptr.h
grpc_alts_credentials::mutable_options
grpc_alts_credentials_options * mutable_options()
Definition: alts_credentials.h:50
grpc_alts_server_credentials::create_security_connector
grpc_core::RefCountedPtr< grpc_server_security_connector > create_security_connector(const grpc_channel_args *) override
Definition: alts_credentials.cc:77
grpc_alts_server_credentials::~grpc_alts_server_credentials
~grpc_alts_server_credentials() override
Definition: alts_credentials.cc:82
grpc_alts_credentials::options_
grpc_alts_credentials_options * options_
Definition: alts_credentials.h:60
grpc_channel_credentials
Definition: src/core/lib/security/credentials/credentials.h:96
grpc_alts_credentials::grpc_alts_credentials
grpc_alts_credentials(const grpc_alts_credentials_options *options, const char *handshaker_service_url)
Definition: alts_credentials.cc:37
port_platform.h


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