#import <GRPCSecureChannelFactory.h>
Instance Methods | |
(nullable grpc_channel *) | - createChannelWithHost:channelArgs: |
(nullable instancetype) | - NS_UNAVAILABLE |
Class Methods | |
(nullable instancetype) | + factoryWithPEMRootCertificates:privateKey:certChain:error: |
Definition at line 24 of file GRPCSecureChannelFactory.h.
- (nullable grpc_channel *) createChannelWithHost: | (NSString *) | host | |
channelArgs: | (nullable NSDictionary *) | args | |
Create a channel with specific channel args to a specific host.
Reimplemented from <GRPCChannelFactory>.
+ (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.
- (nullable instancetype) NS_UNAVAILABLE |