IDTech iOS/OSX SDK Guide  1.1.052
API reference for BTPay 200
 All Data Structures Functions Variables Properties Pages
APDUResponse.h
1 //
2 // APDUResponse.h
3 // IDTech
4 //
5 // Created by Randy Palermo on 5/16/14.
6 // Copyright (c) 2014 IDTech Products. All rights reserved.
7 //
8 
9 
10 @class APDUResponse;
11 
14 @interface APDUResponse : NSObject{
15  @public
16  BOOL hasKSN;
18  NSData* response;
19  NSData* ksn;
20  unsigned char SW1;
21  unsigned char SW2;
22  int apduLength;
23 }
24 
25 
29 -(void)clear;
33 + (APDUResponse *)sharedController;
34 
35 
36 
37 @property unsigned char SW1;
38 @property unsigned char SW2;
39 @property BOOL hasKSN;
40 @property BOOL hasEncryption;
41 @property int apduLength;
42 @property (nonatomic, strong) NSData* response;
43 @property (nonatomic, strong) NSData* ksn;
44 
45 @end
BOOL hasKSN
KSN data read.
Definition: APDUResponse.h:16
Definition: APDUResponse.h:14
int apduLength
Length of valid R-APDU.
Definition: APDUResponse.h:22
unsigned char SW1
Status Word Byte 1.
Definition: APDUResponse.h:20
NSData * response
APDU Response excluding SW1 and SW2.
Definition: APDUResponse.h:18
unsigned char SW2
Status Word Byte 2.
Definition: APDUResponse.h:21
BOOL hasEncryption
APDU response is encrypted.
Definition: APDUResponse.h:17
NSData * ksn
Key Seral Number.
Definition: APDUResponse.h:19