Instance Methods | Class Methods | List of all members
GRPCSecureChannelFactory Class Reference

#import <GRPCSecureChannelFactory.h>

Inheritance diagram for GRPCSecureChannelFactory:
Inheritance graph
[legend]

Instance Methods

(nullable grpc_channel *) - createChannelWithHost:channelArgs:
 
(nullable instancetype) - NS_UNAVAILABLE
 

Class Methods

(nullable instancetype) + factoryWithPEMRootCertificates:privateKey:certChain:error:
 

Detailed Description

Definition at line 24 of file GRPCSecureChannelFactory.h.

Method Documentation

◆ createChannelWithHost:channelArgs:

- (nullable grpc_channel *) createChannelWithHost: (NSString *)  host
channelArgs: (nullable NSDictionary *)  args 

Create a channel with specific channel args to a specific host.

Reimplemented from <GRPCChannelFactory>.

◆ factoryWithPEMRootCertificates:privateKey:certChain:error:

+ (nullable instancetype) factoryWithPEMRootCertificates: (nullable NSString *)  rootCerts
privateKey: (nullable NSString *)  privateKey
certChain: (nullable NSString *)  certChain
error: (NSError **)  errorPtr 

Creates a secure channel factory which uses provided root certificates and client authentication credentials. If rootCerts is nil, gRPC will use its default root certificates. If rootCerts is provided, it must only contain the server's CA to avoid memory issue.

◆ NS_UNAVAILABLE

- (nullable instancetype) NS_UNAVAILABLE

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:46