local_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_LOCAL_LOCAL_CREDENTIALS_H
20 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_LOCAL_LOCAL_CREDENTIALS_H
21 
23 
24 #include <grpc/grpc.h>
25 #include <grpc/grpc_security.h>
28 
34 
35 /* Main class for grpc local channel credential. */
37  public:
39  ~grpc_local_credentials() override = default;
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 
50 
51  private:
52  int cmp_impl(const grpc_channel_credentials* other) const override {
53  // TODO(yashykt): Check if we can do something better here
55  static_cast<const grpc_channel_credentials*>(this), other);
56  }
57 
59 };
60 
61 /* Main class for grpc local server credential. */
63  public:
65  ~grpc_local_server_credentials() override = default;
66 
68  create_security_connector(const grpc_channel_args* /* args */) override;
69 
70  grpc_core::UniqueTypeName type() const override;
71 
73 
74  private:
76 };
77 
78 #endif /* GRPC_CORE_LIB_SECURITY_CREDENTIALS_LOCAL_LOCAL_CREDENTIALS_H */
grpc_local_credentials::~grpc_local_credentials
~grpc_local_credentials() override=default
grpc_local_server_credentials::~grpc_local_server_credentials
~grpc_local_server_credentials() override=default
useful.h
grpc_local_server_credentials::connect_type_
grpc_local_connect_type connect_type_
Definition: local_credentials.h:75
grpc_local_credentials::connect_type
grpc_local_connect_type connect_type() const
Definition: local_credentials.h:49
grpc_security.h
credentials.h
grpc_channel_args
Definition: grpc_types.h:132
grpc_types.h
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 >
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
security_connector.h
grpc_local_credentials::connect_type_
grpc_local_connect_type connect_type_
Definition: local_credentials.h:58
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_credentials::connect_type
grpc_local_connect_type connect_type() const
Definition: local_credentials.h:72
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
grpc_core::QsortCompare
int QsortCompare(const T &a, const T &b)
Definition: useful.h:95
grpc_local_credentials::cmp_impl
int cmp_impl(const grpc_channel_credentials *other) const override
Definition: local_credentials.h:52
grpc_security_constants.h
unique_type_name.h
ref_counted_ptr.h
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_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
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:29