@procivis/react-native-one-core 1.75488.0 → 1.81885.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +15 -14
  2. package/android/build.gradle +0 -11
  3. package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +1 -15
  4. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +4 -4
  5. package/android/src/main/java/ch/procivis/one/core/Serialize.kt +0 -2
  6. package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +124 -107
  7. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt +5 -8
  8. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +17 -222
  9. package/core-sdk.json +6 -6
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.js +2 -0
  12. package/dist/src/config.d.ts +3 -2
  13. package/dist/src/config.js +5 -0
  14. package/dist/src/core.d.ts +9 -182
  15. package/dist/src/core.js +9 -20
  16. package/dist/src/nfc.d.ts +0 -5
  17. package/dist/src/one-core-uniffi-intf.d.ts +1773 -0
  18. package/dist/src/one-core-uniffi-intf.js +356 -0
  19. package/ios/Deserialize.swift +0 -28
  20. package/ios/ProcivisOneCoreModule.m +4 -4
  21. package/ios/ProcivisOneCoreModule.swift +10 -10
  22. package/ios/RSEKeyStorage.swift +17 -571
  23. package/ios/RSEPinPad.swift +3 -56
  24. package/ios/Serialize.swift +80 -44
  25. package/package.json +4 -2
  26. package/react-native-one-core.podspec +1 -1
  27. package/android/build.gradle_opensource +0 -122
  28. package/android/libs/core-reactnative-compatible-2025.0305.1.aar +0 -0
  29. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadRunner.kt +0 -123
  30. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt_opensource +0 -20
  31. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadWrapper.kt +0 -396
  32. package/android/src/main/java/ch/procivis/one/core/ubiqu/RegistrationManager.kt +0 -59
  33. package/android/src/main/java/ch/procivis/one/core/ubiqu/TokenManager.kt +0 -48
  34. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt_opensource +0 -63
  35. package/android/src/main/java/ch/procivis/one/core/ubiqu/Util.kt +0 -74
  36. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityRequest.kt +0 -9
  37. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityResponse.kt +0 -9
  38. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/RegisterRSEResponse.kt +0 -10
  39. package/dist/src/backup.d.ts +0 -22
  40. package/dist/src/backup.js +0 -1
  41. package/dist/src/cache.d.ts +0 -11
  42. package/dist/src/cache.js +0 -12
  43. package/dist/src/credential.d.ts +0 -201
  44. package/dist/src/credential.js +0 -44
  45. package/dist/src/credentialSchema.d.ts +0 -135
  46. package/dist/src/credentialSchema.js +0 -34
  47. package/dist/src/did.d.ts +0 -63
  48. package/dist/src/did.js +0 -27
  49. package/dist/src/history.d.ts +0 -101
  50. package/dist/src/history.js +0 -63
  51. package/dist/src/identifier.d.ts +0 -133
  52. package/dist/src/identifier.js +0 -29
  53. package/dist/src/key.d.ts +0 -17
  54. package/dist/src/key.js +0 -1
  55. package/dist/src/list.d.ts +0 -14
  56. package/dist/src/list.js +0 -5
  57. package/dist/src/organisation.d.ts +0 -9
  58. package/dist/src/organisation.js +0 -1
  59. package/dist/src/proof.d.ts +0 -234
  60. package/dist/src/proof.js +0 -43
  61. package/dist/src/proofSchema.d.ts +0 -116
  62. package/dist/src/proofSchema.js +0 -9
  63. package/dist/src/trust.d.ts +0 -173
  64. package/dist/src/trust.js +0 -44
  65. package/dist/src/walletUnit.d.ts +0 -30
  66. package/dist/src/walletUnit.js +0 -11
  67. package/ios/RSEKeyStorage.swift_opensource +0 -61
  68. package/ios/RSEPinPad.swift_opensource +0 -21
  69. package/ios/UBQKit.xcframework/Info.plist +0 -44
  70. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Assets.car +0 -0
  71. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFCompatibilityMacros.h +0 -37
  72. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFHTTPSessionManager.h +0 -304
  73. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +0 -216
  74. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworking.h +0 -41
  75. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +0 -16
  76. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFSecurityPolicy.h +0 -156
  77. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLRequestSerialization.h +0 -479
  78. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLResponseSerialization.h +0 -310
  79. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLSessionManager.h +0 -501
  80. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/CardRequestProtocol.h +0 -72
  81. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Constants.h +0 -222
  82. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DeviceBindProtocol.h +0 -38
  83. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DomainSecurityModule.h +0 -43
  84. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ErrorDomains.h +0 -68
  85. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/FreeAssetProtocol.h +0 -40
  86. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/GDataXMLNode.h +0 -214
  87. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSDictionary+Utilities.h +0 -23
  88. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSFileManager+Utilities.h +0 -20
  89. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSString+Utilities.h +0 -23
  90. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSURL+Utilities.h +0 -12
  91. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ProtocolBase.h +0 -38
  92. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ResetPinProtocol.h +0 -45
  93. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Settings.h +0 -120
  94. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequest.h +0 -58
  95. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +0 -37
  96. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +0 -34
  97. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +0 -28
  98. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +0 -35
  99. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +0 -31
  100. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +0 -34
  101. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit-Swift.h +0 -761
  102. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit.h +0 -56
  103. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQPacket.h +0 -38
  104. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Info.plist +0 -0
  105. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.abi.json +0 -89006
  106. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1099
  107. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  108. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftinterface +0 -1099
  109. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/module.modulemap +0 -11
  110. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/UBQKit +0 -0
  111. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/_CodeSignature/CodeResources +0 -597
  112. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/certs +0 -0
  113. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/checksums +0 -0
  114. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/pinning_pub +0 -0
  115. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/static +0 -0
  116. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/stream +0 -0
  117. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Assets.car +0 -0
  118. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFCompatibilityMacros.h +0 -37
  119. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFHTTPSessionManager.h +0 -304
  120. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +0 -216
  121. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworking.h +0 -41
  122. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +0 -16
  123. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFSecurityPolicy.h +0 -156
  124. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLRequestSerialization.h +0 -479
  125. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLResponseSerialization.h +0 -310
  126. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLSessionManager.h +0 -501
  127. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/CardRequestProtocol.h +0 -72
  128. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Constants.h +0 -222
  129. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DeviceBindProtocol.h +0 -38
  130. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DomainSecurityModule.h +0 -43
  131. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ErrorDomains.h +0 -68
  132. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/FreeAssetProtocol.h +0 -40
  133. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/GDataXMLNode.h +0 -214
  134. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSDictionary+Utilities.h +0 -23
  135. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSFileManager+Utilities.h +0 -20
  136. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSString+Utilities.h +0 -23
  137. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSURL+Utilities.h +0 -12
  138. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ProtocolBase.h +0 -38
  139. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ResetPinProtocol.h +0 -45
  140. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Settings.h +0 -120
  141. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequest.h +0 -58
  142. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +0 -37
  143. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +0 -34
  144. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +0 -28
  145. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +0 -35
  146. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +0 -31
  147. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +0 -34
  148. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit-Swift.h +0 -1522
  149. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit.h +0 -56
  150. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQPacket.h +0 -38
  151. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Info.plist +0 -0
  152. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -89006
  153. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -1099
  154. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  155. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -1099
  156. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -89006
  157. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -1099
  158. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  159. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -1099
  160. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/module.modulemap +0 -11
  161. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/UBQKit +0 -0
  162. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/_CodeSignature/CodeResources +0 -652
  163. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/certs +0 -0
  164. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/checksums +0 -0
  165. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/pinning_pub +0 -0
  166. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/static +0 -0
  167. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/stream +0 -0
@@ -1,23 +0,0 @@
1
- //
2
- // NSString+Utilities.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 01-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import <CommonCrypto/CommonDigest.h>
11
-
12
-
13
- NS_ASSUME_NONNULL_BEGIN
14
-
15
- @interface NSString (Utilities)
16
-
17
- - (unsigned int)intValueHex;
18
- - (NSString *)stringByPaddingLeftToLength:(NSUInteger)newLength withString:(NSString *)padString startingAtIndex:(NSUInteger)padIndex;
19
- - (NSDate *)asDate;
20
-
21
- @end
22
-
23
- NS_ASSUME_NONNULL_END
@@ -1,12 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
-
3
- NS_ASSUME_NONNULL_BEGIN
4
-
5
- @interface NSURL (Utilities)
6
-
7
- /// Retrieve the query parameters for a given URL.
8
- - (NSDictionary *)parseURL;
9
-
10
- @end
11
-
12
- NS_ASSUME_NONNULL_END
@@ -1,38 +0,0 @@
1
- //
2
- // ProtocolBase.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 06-02-15.
6
- // Copyright © 2015 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- @class ApplicationMessage;
12
- @class DomainChannel;
13
- @class Asset;
14
-
15
- NS_ASSUME_NONNULL_BEGIN
16
-
17
- extern NSString * const kProtocolErrorDomain;
18
-
19
- typedef NS_ENUM(NSInteger, ProtocolError) {
20
- ProtocolErrorUnknown = -1,
21
- ProtocolErrorInvalidServerNonce = -1000
22
- };
23
-
24
- extern NSString * const kEncryptedServerNonceKey;
25
-
26
- @interface ProtocolBase : NSObject
27
-
28
- @property DomainChannel *domainChannel;
29
-
30
- - (void)handleResponse:(ApplicationMessage *)response forDomainChannel:(DomainChannel *)domainChannel handler:(void (^)(ApplicationMessage *))handler error:(NSError * __autoreleasing *)error;
31
-
32
- - (void)handleResponse:(ApplicationMessage *)response handler:(void (^)(ApplicationMessage *))handler error:(NSError * __autoreleasing *)error;
33
-
34
- - (void)sendUDIDData:(Asset *)asset handler:(void (^)(void))handler failure:(void (^)(NSError * _Nullable error))failure;
35
-
36
- @end
37
-
38
- NS_ASSUME_NONNULL_END
@@ -1,45 +0,0 @@
1
- //
2
- // GetOpenProtocol.h
3
- // Authenticate
4
- //
5
- // Created by Tristan Timmermans on 12/03/15.
6
- // Copyright (c) 2015 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import "ProtocolBase.h"
10
-
11
-
12
- @class Token;
13
- @class Asset;
14
-
15
- /*** GetOpenProtocol Error Domain ***/
16
-
17
- extern NSString * const kResetPinProtocolErrorDomain;
18
-
19
- typedef NS_ENUM(NSInteger, ResetPinProtocolError)
20
- {
21
- ResetPinProtocolErrorUnknown = -1,
22
- ResetPinProtocolErrorUnexpectedCommand = -1000
23
- };
24
-
25
-
26
- @interface ResetPinProtocol : ProtocolBase
27
-
28
- /**
29
- @brief Designated initializer
30
-
31
- @param asset The asset to use
32
- */
33
- - (instancetype)initWithAsset:(Asset *)asset;
34
-
35
-
36
- /**
37
- @brief Ask server to resend the push message for this device. Simple command with just a command and no operands.
38
- @since 2015-03-12
39
- @author Tristan Timmermans
40
-
41
- @param completion Completion block to be executed upon receiving a response to the GetOpen message (or if an error occurs)
42
- */
43
- - (void)resetPinWithCompletionBlock:(BOOL)unlock completion:(void (^)(BOOL, NSError *, Token *))completion;
44
-
45
- @end
@@ -1,120 +0,0 @@
1
- //
2
- // Settings.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 29-09-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
- @import Foundation;
10
-
11
-
12
- extern NSString * const kPlatformAppleIOS;
13
-
14
- extern NSString * const kAPIVersion;
15
-
16
- extern const NSInteger kUBQProtocolVersion4;
17
- extern const NSInteger kUBQProtocolVersion5;
18
- extern const NSInteger kUBQProtocolVersion6;
19
- extern const NSInteger kUBQProtocolVersion; // UBQ protocol version used in the app
20
-
21
- extern const NSUInteger kSubscriptionNonceLength;
22
- extern const NSUInteger kIdentificationNonceLength;
23
- extern const NSUInteger kIdentificationNonce11Length;
24
- extern const NSUInteger kAssetRequestIdentifierNonceLength;
25
- extern const NSUInteger kPukLength;
26
-
27
- extern const NSUInteger kKeyAgreementNonceLength; // in bytes
28
- extern const NSUInteger kEphemeralKeyLength; // in bytes
29
- extern const NSUInteger kTokenLength; // in bytes
30
- extern const NSUInteger kPublicExponentLength; // in bytes
31
- extern const NSUInteger kVersionLength; // in bytes
32
-
33
- extern NSString * const kChecksumFileName;
34
- extern NSString * const kStreamFileName;
35
- extern NSString * const kCertificateFileName;
36
- extern NSString * const kStaticKeyFileName;
37
-
38
- extern const NSUInteger kChecksumFilesSize;
39
- extern NSString * const kChecksumFiles[];
40
-
41
- extern NSString * const kPasteboardKey;
42
-
43
- extern NSString * const kIdentityProviderUuidDDYStaging;
44
- extern NSString * const kIdentityProviderUuidDDYProduction;
45
-
46
- extern NSString * const kIdentityProviderUuidAppleSandbox;
47
- extern NSString * const kIdentityProviderUuidAppleProduction;
48
-
49
- extern NSString * const kIdentityProviderUuidDigiduifStaging;
50
- extern NSString * const kIdentityProviderUuidKPNStaging;
51
- extern NSString * const kIdentityProviderUuidMonyqStaging;
52
- extern NSString * const kIdentityProviderUuidSignixStaging;
53
- extern NSString * const kIdentityProviderUuidGemaltoStaging;
54
-
55
- extern NSString * const kIdentityProviderUuidQKeyWindowsDev;
56
-
57
- extern NSString * const kIdentityProviderNoDomainTest;
58
-
59
- extern NSString * const kUserDefaultsSkipIntroKey;
60
- extern NSString * const kUserDefaultsAddFreeAsset;
61
- extern NSString * const kUserDefaultsUseSandboxKey;
62
-
63
- extern NSString * const kLaunchParamActionIdentify;
64
- extern NSString * const kLaunchParamActionIssue;
65
- extern NSString * const kLaunchParamActionSubscribe;
66
- extern NSString * const kLaunchParamActionWaitForPush;
67
- extern NSString * const kLaunchParamActionUnlock;
68
- extern NSString * const kLaunchParamActionResetPin;
69
- extern NSString * const kLaunchParamActionReverseIdentify;
70
- extern NSString * const kLaunchParamActionActive;
71
-
72
- extern NSString * const kLaunchParamAction;
73
- extern NSString * const kLaunchParamCallback;
74
- extern NSString * const kLaunchParamCode;
75
- extern NSString * const kLaunchParamIDP;
76
- extern NSString * const kLaunchParamPuk;
77
- extern NSString * const kLaunchParamOrg;
78
- extern NSString * const kLaunchParamUse;
79
- extern NSString * const kLaunchParamLaunchType;
80
- extern NSString * const kLaunchParamIDPUuid;
81
- extern NSString * const kLaunchParamAsset;
82
- extern NSString * const kLaunchParamAssetRequestToken;
83
- extern NSString * const kLaunchParamAssetRequestUuid;
84
- extern NSString * const kLaunchParamAssetUuid;
85
- extern NSString * const kLaunchParamRequestPushResend;
86
- extern NSString * const kLaunchParamProfileName;
87
- extern NSString * const kLaunchParamRevoke;
88
-
89
- extern NSString * const kActiveOptionLocked;
90
- extern NSString * const kActiveOptionDestroyed;
91
- extern NSString * const kActiveOptionRevoked;
92
-
93
-
94
-
95
- extern NSString * const kLaunchParamNonce;
96
- extern NSString * const kLaunchParamversion;
97
- extern NSString * const kLaunchParamMethod;
98
- extern NSString * const kLaunchParamTimeout;
99
- extern NSString * const kLaunchParamAutoadvance;
100
-
101
- extern NSString * const kLaunchParamMethodIdentify;
102
- extern NSString * const kLaunchParamMethodSubscribe;
103
- extern NSString * const kLaunchParamMethodUse;
104
- extern NSString * const kLaunchParamMethodUnlock;
105
- extern NSString * const kLaunchParamMethodResetpin;
106
- extern NSString * const kLaunchParamMethodReverseidentify;
107
- extern NSString * const kLaunchParamMethodActive;
108
- extern NSString * const kUbiquURLSCHEME;
109
-
110
- extern NSString * const kUbiquSharedGroup;
111
-
112
- extern int const kRejectionMessagesSize;
113
- extern NSString * const kRejectionMessages[];
114
-
115
- extern int const kLocs[];
116
-
117
- extern const NSUInteger kDefaultThemeIndex;
118
-
119
- extern const double kPushTimeout;
120
- extern const double kConnectionTimeout;
@@ -1,58 +0,0 @@
1
- //
2
- // UBQCardRequest.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 02-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "GDataXMLNode.h"
11
- #import "NSString+Utilities.h"
12
-
13
- NS_ASSUME_NONNULL_BEGIN
14
-
15
- typedef NS_ENUM(NSInteger, UBQCardRequestAction) {
16
- UBQCardRequestActionBind = 0,
17
- UBQCardRequestActionAuthorizeCSR = 1,
18
- UBQCardRequestActionLoginWithPIN = 3,
19
- UBQCardRequestActionSignWithPIN = 7,
20
- UBQCardRequestActionEncryptWithPIN = 9,
21
- UBQCardRequestActionUnlock = 10,
22
- UBQCardRequestActionResetPIN = 11,
23
- UBQCardRequestActionSignCSR = 13,
24
- UBQCardRequestActionBatchSign = 14,
25
- UBQCardRequestActionDASign = 15,
26
- UBQCardRequestActionDADecrypt = 16,
27
- UBQCardRequestActionDABatchSign = 17,
28
- UBQCardRequestActionAddECCKey = 50,
29
- UBQCardRequestActionAddDeviceKey = 51,
30
- UBQCardRequestActionAesRequest = 60
31
- };
32
-
33
- @interface UBQCardRequest : NSObject
34
-
35
- @property (copy) NSString *uuid;
36
- @property (copy) NSString *status;
37
- @property (copy) NSDate *created;
38
- @property UBQCardRequestAction action;
39
- @property NSDictionary *actionArgs;
40
- @property (copy) NSString *organization;
41
- @property NSData *payload;
42
- @property (copy) NSString *attemptsLeft;
43
- @property NSData *biometricData;
44
- @property NSInteger rejectReason;
45
- @property NSString *profileName;
46
- @property NSString *secureDataURL;
47
-
48
- @property NSData *response;
49
-
50
- + (NSArray * _Nullable)parseXML:(NSData *)data;
51
-
52
- - (BOOL)updateResponse:(NSData * _Nullable)response status:(NSString *)status;
53
- - (BOOL)validateResponse:(NSData *)response action:(UBQCardRequestAction)action status:(NSString *)status;
54
- - (BOOL)updateBiometrics:(NSData *)biometrics;
55
-
56
- @end
57
-
58
- NS_ASSUME_NONNULL_END
@@ -1,37 +0,0 @@
1
- //
2
- // UBQCardRequestBaseProcessor.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 02-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import "UBQCardRequest.h"
10
-
11
- @class UBQSecurityStrategy;
12
- @class Asset;
13
- @class IdentityProvider;
14
- NS_ASSUME_NONNULL_BEGIN
15
-
16
- @interface UBQCardRequestBaseProcessor : NSObject
17
-
18
- @property UBQSecurityStrategy *securityModule;
19
- @property IdentityProvider *idProvider;
20
- @property Asset *asset;
21
-
22
- + (UBQCardRequestBaseProcessor * _Nullable)cardRequestProcessorForAction:(UBQCardRequestAction)action asset:(Asset *)asset securityModule:(UBQSecurityStrategy *)securityModule;
23
-
24
- - (id)initWithAsset:(Asset *)asset securityModule:(UBQSecurityStrategy *)securityModule;
25
-
26
- - (NSMutableDictionary *)getContextFromCardReqParams:(UBQCardRequest *)cardReq;
27
- - (NSData *)pinAsBytes:(NSString *)pin;
28
- - (NSData *)pukAsBytes:(NSString *)puk;
29
- - (NSDictionary * _Nullable)preprocess:(UBQCardRequest *)cardReq error:(NSError * __autoreleasing *)error;
30
- - (BOOL)process:(UBQCardRequest *)cardReq oldPin:(NSData *)oldpin pin:(NSData *)pin;
31
- - (BOOL)process:(UBQCardRequest *)cardReq puk:(NSData * _Nullable)puk pin:(NSData *)pin;
32
- - (BOOL)process:(UBQCardRequest *)cardReq pin:(NSData * _Nullable)pin;
33
- - (BOOL)validate:(UBQCardRequest *)cardReq error:(NSError * __autoreleasing *)error;
34
-
35
- @end
36
-
37
- NS_ASSUME_NONNULL_END
@@ -1,34 +0,0 @@
1
- //
2
- // UBQCardRequestBindProcessor.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 03-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
-
10
- #import "UBQCardRequestBaseProcessor.h"
11
- NS_ASSUME_NONNULL_BEGIN
12
-
13
- /*** UBQCardRequestBindProcessor Error Domain ***/
14
- // FIXME: Move to ErrorDomains.h
15
- extern NSString * const kUBQCardRequestBindProcessorErrorDomain;
16
-
17
- typedef NS_ENUM(NSInteger, UBQCardRequestBindProcessorError) {
18
- UBQCardRequestBindProcessorErrorUnknown = -1,
19
- UBQCardRequestBindProcessorErrorUnexpectedAction = -1000,
20
- UBQCardRequestBindProcessorErrorInvalidPayload = -1001,
21
- UBQCardRequestBindProcessorErrorInvalidRSASignature = -1002,
22
- UBQCardRequestBindProcessorErrorUnknownPublicSlotGroupKeyId = -1003
23
- };
24
-
25
- @interface UBQCardRequestBindProcessor : UBQCardRequestBaseProcessor
26
-
27
- - (NSDictionary * _Nullable)preprocess:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
28
- - (BOOL)process:(UBQCardRequest *)cardReq puk:(NSData * _Nullable)puk pin:(NSData *)pin;
29
- - (BOOL)process:(UBQCardRequest *)cardReq deviceKey:(SecKeyRef)deviceKey;
30
- - (BOOL)validate:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
31
-
32
- @end
33
-
34
- NS_ASSUME_NONNULL_END
@@ -1,28 +0,0 @@
1
- //
2
- // UBQCardRequestNullProcessor.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 02-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import "UBQCardRequestBaseProcessor.h"
10
- NS_ASSUME_NONNULL_BEGIN
11
-
12
- // FIXME: Move this to ErrorDomains.h
13
- extern NSString * const kUBQCardRequestNullProcessorErrorDomain;
14
-
15
- typedef NS_ENUM(NSInteger, UBQCardRequestNullProcessorError) {
16
- UBQCardRequestNullProcessorErrorUnknown = -1,
17
- UBQCardRequestNullProcessorErrorUnexpectedAction = -1000,
18
- UBQCardRequestNullProcessorErrorInvalidPayload = -1001
19
- };
20
-
21
- @interface UBQCardRequestNullProcessor : UBQCardRequestBaseProcessor
22
-
23
- - (BOOL)process:(UBQCardRequest *)cardReq puk:(NSData * _Nullable)puk pin:(NSData *)pin;
24
- - (BOOL)validate:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
25
-
26
- @end
27
-
28
- NS_ASSUME_NONNULL_END
@@ -1,35 +0,0 @@
1
- //
2
- // UBQCardRequestResetPinProcessor.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 30-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
-
10
- #import "UBQCardRequestBaseProcessor.h"
11
- NS_ASSUME_NONNULL_BEGIN
12
-
13
- /*** UBQCardRequestResetPinProcessor Error Domain ***/
14
-
15
- // FIXME: Move to ErrorDomains.h
16
- extern NSString * const kUBQCardRequestResetPinProcessorErrorDomain;
17
-
18
- typedef NS_ENUM(NSInteger, UBQCardRequestResetPinProcessorError) {
19
- UBQCardRequestResetPinProcessorErrorUnknown = -1,
20
- UBQCardRequestResetPinProcessorErrorUnexpectedAction = -1000,
21
- UBQCardRequestResetPinProcessorErrorInvalidPayload = -1001,
22
- UBQCardRequestResetPinProcessorErrorDecryptionFailed = 1002
23
- };
24
-
25
-
26
- @interface UBQCardRequestResetPinProcessor : UBQCardRequestBaseProcessor
27
-
28
- - (NSDictionary * _Nullable)preprocess:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
29
- - (BOOL)process:(UBQCardRequest *)cardReq oldPin:(NSData *)oldpin pin:(NSData *)pin;
30
- - (BOOL)process:(UBQCardRequest *)cardReq oldPin:(NSData *)oldPin pin:(NSData *)pin deviceKey:(SecKeyRef)deviceKey;
31
- - (BOOL)validate:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
32
-
33
- @end
34
-
35
- NS_ASSUME_NONNULL_END
@@ -1,31 +0,0 @@
1
- //
2
- // UBQCardRequestUnlockProcessor.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 30-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
-
9
- #import "UBQCardRequestBaseProcessor.h"
10
- NS_ASSUME_NONNULL_BEGIN
11
-
12
- // FIXME: Move this to ErrorDomains.h
13
- extern NSString * const kUBQCardRequestUnlockProcessorErrorDomain;
14
-
15
- typedef NS_ENUM(NSInteger, UBQCardRequestUnlockProcessorError) {
16
- UBQCardRequestUnlockProcessorErrorUnknown = -1,
17
- UBQCardRequestUnlockProcessorErrorUnexpectedAction = -1000,
18
- UBQCardRequestUnlockProcessorErrorInvalidPayload = -1001,
19
- UBQCardRequestUnlockProcessorErrorDecryptionFailed = 1002
20
- };
21
-
22
- @interface UBQCardRequestUnlockProcessor : UBQCardRequestBaseProcessor
23
-
24
- - (NSDictionary * _Nullable)preprocess:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
25
- - (BOOL)process:(UBQCardRequest *)cardReq puk:(NSData * _Nullable)puk pin:(NSData *)pin;
26
- - (BOOL)process:(UBQCardRequest *)cardReq puk:(NSData * _Nullable)puk pin:(NSData *)pin deviceKey:(SecKeyRef)deviceKey;
27
- - (BOOL)validate:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
28
-
29
- @end
30
-
31
- NS_ASSUME_NONNULL_END
@@ -1,34 +0,0 @@
1
- //
2
- // UBQCardRequestUseProcessor.h
3
- // Authenticate
4
- //
5
- // Created by Rogier van de Pol on 03-10-14.
6
- // Copyright (c) 2014 Ubiqu. All rights reserved.
7
- //
8
- #import "UBQCardRequestBaseProcessor.h"
9
-
10
- NS_ASSUME_NONNULL_BEGIN
11
-
12
- // FIXME: Move to ErrorDomains.h
13
- extern NSString * const kUBQCardRequestUseProcessorErrorDomain;
14
-
15
- typedef NS_ENUM(NSInteger, UBQCardRequestUseProcessorError) {
16
- UBQCardRequestUseProcessorErrorUnknown = -1,
17
- UBQCardRequestUseProcessorErrorUnexpectedAction = -1000,
18
- UBQCardRequestUseProcessorErrorInvalidPayload = -1001
19
- };
20
-
21
-
22
- @interface UBQCardRequestUseProcessor : UBQCardRequestBaseProcessor
23
-
24
- - (NSDictionary * _Nullable)preprocess:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
25
- - (BOOL)process:(UBQCardRequest *)cardReq puk:(NSData * _Nullable)puk pin:(NSData *)pin;
26
- - (BOOL)process:(UBQCardRequest *)cardReq keyIdentifier:(NSData *)keyIdentifier signature:(NSData *)signature;
27
-
28
- - (BOOL)processV4:(UBQCardRequest *)cardReq pin:(NSData *)pin deviceKey:(SecKeyRef)deviceKey;
29
- - (BOOL)processV4:(UBQCardRequest *)cardReq keyIdentifier:(NSData *)keyIdentifier signature:(NSData * )biometricSignature deviceKey:(SecKeyRef)deviceKey;
30
-
31
- - (BOOL)validate:(UBQCardRequest *)cardReq error:(NSError *__autoreleasing *)error;
32
- @end
33
-
34
- NS_ASSUME_NONNULL_END