diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2019-01-07 09:50:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 09:50:21 -0800 |
commit | 36b47ce0de60754cf14258e15d25dd2d1bb5abe0 (patch) | |
tree | 891087733e8609cc0594559dbd17d8b4b9b5b1e9 /src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.h | |
parent | 46bd2f7adb926053345665d5c487fa20acd2b5b0 (diff) | |
parent | b4a926961abc9e29016b2ba30093f3925de10514 (diff) |
Merge pull request #16190 from muxi/config-isolation
Implement L38: gRPC Objective-C API Upgrade
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.h')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.h b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.h new file mode 100644 index 0000000000..588239b706 --- /dev/null +++ b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.h @@ -0,0 +1,38 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +#import "GRPCChannelFactory.h" + +@class GRPCChannel; + +NS_ASSUME_NONNULL_BEGIN + +@interface GRPCSecureChannelFactory : NSObject<GRPCChannelFactory> + ++ (nullable instancetype)factoryWithPEMRootCertificates:(nullable NSString *)rootCerts + privateKey:(nullable NSString *)privateKey + certChain:(nullable NSString *)certChain + error:(NSError **)errorPtr; + +- (nullable grpc_channel *)createChannelWithHost:(NSString *)host + channelArgs:(nullable NSDictionary *)args; + +- (nullable instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END |