Go to the documentation of this file.
19 #ifndef GRPCPP_SECURITY_SERVER_CREDENTIALS_H
20 #define GRPCPP_SECURITY_SERVER_CREDENTIALS_H
58 static inline std::shared_ptr<ServerCredentials> SslServerCredentials(
60 return ::grpc_impl::SslServerCredentials(options);
63 static inline std::shared_ptr<ServerCredentials> InsecureServerCredentials() {
64 return ::grpc_impl::InsecureServerCredentials();
67 namespace experimental {
72 static inline std::shared_ptr<ServerCredentials> AltsServerCredentials(
74 return ::grpc_impl::experimental::AltsServerCredentials(options);
77 static inline std::shared_ptr<ServerCredentials> LocalServerCredentials(
79 return ::grpc_impl::experimental::LocalServerCredentials(type);
83 static inline std::shared_ptr<ServerCredentials> TlsServerCredentials(
84 const ::grpc_impl::experimental::TlsCredentialsOptions& options) {
85 return ::grpc_impl::experimental::TlsServerCredentials(options);
91 #endif // GRPCPP_SECURITY_SERVER_CREDENTIALS_H
Definition: server_credentials.h:42
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
bool force_client_auth
Definition: server_credentials.h:49
::grpc_impl::ServerCredentials ServerCredentials
Definition: server_credentials.h:30
::grpc_impl::Server Server
Definition: server.h:26
Options to create ServerCredentials with ALTS.
Definition: server_credentials_impl.h:71
::grpc_impl::experimental::AltsServerCredentialsOptions AltsServerCredentialsOptions
Definition: server_credentials.h:70
grpc::string cert_chain
Definition: server_credentials.h:44
grpc::string pem_root_certs
Definition: server_credentials.h:46
grpc_ssl_client_certificate_request_type
Definition: grpc_security_constants.h:62
SslServerCredentialsOptions()
Definition: server_credentials.h:35
Options to create ServerCredentials with SSL.
Definition: server_credentials.h:33
SslServerCredentialsOptions(grpc_ssl_client_certificate_request_type request_type)
Definition: server_credentials.h:38
Server does not request client certificate.
Definition: grpc_security_constants.h:67
std::vector< PemKeyCertPair > pem_key_cert_pairs
Definition: server_credentials.h:47
std::string string
Definition: config.h:35
grpc_ssl_client_certificate_request_type client_certificate_request
If both force_client_auth and client_certificate_request fields are set, force_client_auth takes effe...
Definition: server_credentials.h:55
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm_impl.h:33
grpc::string private_key
Definition: server_credentials.h:43
grpc_local_connect_type
Type of local connections for which local channel/server credentials will be applied.
Definition: grpc_security_constants.h:140