GRPC Objective-C  1.26.0
Instance Methods | Class Methods
GRPCSecureChannelFactory Class Reference

#import <GRPCSecureChannelFactory.h>

Instance Methods

(nullable grpc_channel *) - createChannelWithHost:channelArgs:
 Create a channel with specific channel args to a specific host. More...
 
(nullable instancetype) - NS_UNAVAILABLE
 

Class Methods

(nullable instancetype) + factoryWithPEMRootCertificates:privateKey:certChain:error:
 Creates a secure channel factory which uses provided root certificates and client authentication credentials. More...
 

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: