summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/DevAPISpecs/SDLFakeSecurityManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLinkTests/DevAPISpecs/SDLFakeSecurityManager.h')
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLFakeSecurityManager.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLFakeSecurityManager.h b/SmartDeviceLinkTests/DevAPISpecs/SDLFakeSecurityManager.h
new file mode 100644
index 000000000..48e0c710c
--- /dev/null
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLFakeSecurityManager.h
@@ -0,0 +1,31 @@
+//
+// SDLFakeSecurityManager.h
+// SmartDeviceLink-iOS
+//
+// Created by Joel Fischer on 8/15/17.
+// Copyright © 2017 smartdevicelink. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import "SDLSecurityType.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface SDLFakeSecurityManager : NSObject <SDLSecurityType>
+
+@property (copy, nonatomic) NSString *appId;
+
+- (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;
+
++ (NSSet<NSString *> *)availableMakes;
+
+@end
+
+NS_ASSUME_NONNULL_END