GRPC Objective-C
1.39.1
|
#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... | |
- (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 |