summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-11-29 14:57:25 -0800
committerMuller, Alexander (A.) <amulle19@ford.com>2016-11-29 14:57:25 -0800
commitaa2165e8a86bcf1b155095c2e7fd269896271d02 (patch)
tree17404c63f55e59fac5de071127a63bcaa874fd65
parent7fcd7ce8e695dff700d3fc58f97b534cf97f8c72 (diff)
downloadsdl_ios-aa2165e8a86bcf1b155095c2e7fd269896271d02.tar.gz
Updated SDLSecurityType to make appId assignable outside of initializer, and sets it after successful RAI.
-rw-r--r--SmartDeviceLink/SDLProxy.m3
-rw-r--r--SmartDeviceLink/SDLSecurityType.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m
index 40e274ff9..c4229da63 100644
--- a/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink/SDLProxy.m
@@ -386,6 +386,9 @@ const int POLICIES_CORRELATION_ID = 65535;
_streamingMediaManager.displayCapabilties = registerResponse.displayCapabilities;
}
self.protocol.securityManager = [self securityManagerForMake:registerResponse.vehicleType.make];
+ if (self.protocol.securityManager) {
+ self.protocol.securityManager.appId = self.appId;
+ }
if ([SDLGlobals globals].protocolVersion >= 4) {
[self sendMobileHMIState];
diff --git a/SmartDeviceLink/SDLSecurityType.h b/SmartDeviceLink/SDLSecurityType.h
index 86dadd52e..08585f004 100644
--- a/SmartDeviceLink/SDLSecurityType.h
+++ b/SmartDeviceLink/SDLSecurityType.h
@@ -12,6 +12,8 @@ NS_ASSUME_NONNULL_BEGIN
@protocol SDLSecurityType <NSObject>
+@property (copy, nonatomic) NSString* appId;
+
- (void)initializeWithAppId:(NSString *)appId completionHandler:(void (^)(NSError *_Nullable error))completionHandler;
- (void)stop;