summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSecurityType.h
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-05-27 14:34:48 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-05-27 14:44:30 -0400
commitcb6b2be45e898d0bd3674ce6b70e757a63287a14 (patch)
tree5f6fc8ae98328b2ad9518fb06eac55715daf2796 /SmartDeviceLink/SDLSecurityType.h
parentb9122449add5507c3fe792c49c2e4650800b2bcd (diff)
parente274adde593fead0a5b787e7ef024d20f983dacb (diff)
downloadsdl_ios-cb6b2be45e898d0bd3674ce6b70e757a63287a14.tar.gz
Merge branch 'develop' into feature/external_security_support
Diffstat (limited to 'SmartDeviceLink/SDLSecurityType.h')
-rw-r--r--SmartDeviceLink/SDLSecurityType.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLSecurityType.h b/SmartDeviceLink/SDLSecurityType.h
new file mode 100644
index 000000000..eb5e82725
--- /dev/null
+++ b/SmartDeviceLink/SDLSecurityType.h
@@ -0,0 +1,25 @@
+//
+// SDLSecurityType.h
+// SmartDeviceLink-iOS
+//
+// Created by Joel Fischer on 2/2/16.
+// Copyright © 2016 smartdevicelink. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@protocol SDLSecurityType <NSObject>
+
+- (void)initializeWithAppId:(NSString *)appId completionHandler:(void (^)(NSError *_Nullable error))completionHandler;
+- (void)stop;
+
+- (nullable NSData *)runHandshakeWithClientData:(NSData *)data error:(NSError **)error;
+
+- (nullable NSData *)encryptData:(NSData *)data withError:(NSError **)error;
+- (nullable NSData *)decryptData:(NSData *)data withError:(NSError **)error;
+
+@end
+
+NS_ASSUME_NONNULL_END