diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-05-25 08:44:23 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-05-25 08:44:23 -0400 |
commit | fb8e9903a323acaf5fc78819bb3c203567542ab2 (patch) | |
tree | e40665103ac7db492e0a40e34cd92f3390defa55 /SmartDeviceLink/SDLPolicyDataParser.h | |
parent | f7540a02262832e34c67b0953dd8a1804a046fea (diff) | |
download | sdl_ios-fb8e9903a323acaf5fc78819bb3c203567542ab2.tar.gz |
Shift files into root directory
Diffstat (limited to 'SmartDeviceLink/SDLPolicyDataParser.h')
-rw-r--r-- | SmartDeviceLink/SDLPolicyDataParser.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLPolicyDataParser.h b/SmartDeviceLink/SDLPolicyDataParser.h new file mode 100644 index 000000000..4e005f9fe --- /dev/null +++ b/SmartDeviceLink/SDLPolicyDataParser.h @@ -0,0 +1,31 @@ +// +// PolicyDataParser.h +// + +#import <Foundation/Foundation.h> + +@interface SDLPolicyDataParser : NSObject + +@property (assign) Byte protocolVersion; +@property (assign) BOOL isResponseRequired; +@property (assign) BOOL isHighBandwidth; +@property (assign) BOOL isSigned; +@property (assign) BOOL isEncrypted; +@property (assign) BOOL hasESN; +@property (assign) Byte serviceType; +@property (assign) Byte commandType; +@property (assign) BOOL CPUDestination; +@property (assign) Byte encryptionKeyIndex; +@property (assign) UInt32 payloadSize; +@property (strong) NSData *ESN; +@property (assign) UInt32 moduleMessageId; +@property (assign) UInt32 serverMessageId; +@property (assign) Byte messageStatus; +@property (strong) NSData *initializationVector; +@property (strong) NSData *payload; +@property (strong) NSData *signatureTag; + +- (NSData *)unwrap:(NSData *)wrappedData; +- (void)parsePolicyData:(NSData *)data; + +@end |