GRPC Core  9.0.0
spiffe_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_TLS_SPIFFE_CREDENTIALS_H
20 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_SPIFFE_CREDENTIALS_H
21 
23 
24 #include <grpc/grpc_security.h>
25 
28 
30  public:
31  explicit SpiffeCredentials(
33  ~SpiffeCredentials() override;
34 
38  const char* target_name, const grpc_channel_args* args,
39  grpc_channel_args** new_args) override;
40 
41  const grpc_tls_credentials_options& options() const { return *options_; }
42 
43  private:
45 };
46 
48  public:
49  explicit SpiffeServerCredentials(
51  ~SpiffeServerCredentials() override;
52 
54  create_security_connector() override;
55 
56  const grpc_tls_credentials_options& options() const { return *options_; }
57 
58  private:
60 };
61 
62 #endif /* GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_SPIFFE_CREDENTIALS_H */
An array of arguments that can be passed around.
Definition: grpc_types.h:132
Definition: credentials.h:99
Definition: spiffe_credentials.h:47
Definition: grpc_tls_credentials_options.h:218
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: spiffe_credentials.cc:69
Definition: credentials.h:263
grpc_core::RefCountedPtr< grpc_server_security_connector > create_security_connector() override
Definition: spiffe_credentials.cc:108
SpiffeCredentials(grpc_core::RefCountedPtr< grpc_tls_credentials_options > options)
Definition: spiffe_credentials.cc:61
const grpc_tls_credentials_options & options() const
Definition: spiffe_credentials.h:56
~SpiffeServerCredentials() override
Definition: spiffe_credentials.cc:105
const grpc_tls_credentials_options & options() const
Definition: spiffe_credentials.h:41
SpiffeServerCredentials(grpc_core::RefCountedPtr< grpc_tls_credentials_options > options)
Definition: spiffe_credentials.cc:100
~SpiffeCredentials() override
Definition: spiffe_credentials.cc:66
Definition: spiffe_credentials.h:29