酷店

OpenSecurityGuardManager.h 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. //
  2. // OpenSecurityGuardSDK version 2.1.0
  3. //
  4. #import <Foundation/Foundation.h>
  5. /**
  6. * 各compoent的compoentid,在获取component对象时传入
  7. */
  8. typedef enum {
  9. /**
  10. * 签名component
  11. */
  12. OpenSecureSignatureComponentID,
  13. /**
  14. * 动态存储component
  15. */
  16. OpenDynamicDataStoreComponentID,
  17. /**
  18. * 静态存储component
  19. */
  20. OpenStaticDataStoreComponentID,
  21. /**
  22. * 初始化component
  23. */
  24. OpenInitComponentID,
  25. /**
  26. * 静态加解密component
  27. */
  28. OpenStaticDataEncryptCompnentID,
  29. /**
  30. * data collection compnent
  31. */
  32. OpenDataCollectionCompnentID,
  33. /**
  34. * dynamic data encrypt componentID
  35. */
  36. OpenDynamicDataEncryptComponentID,
  37. /**
  38. * StaticKeyEncrypt componentID
  39. */
  40. OpenStaticKeyEncryptComponentID,
  41. /**
  42. * UMID componentID
  43. */
  44. OpenUMIDComponentID,
  45. /**
  46. * OpenSDK componentID
  47. */
  48. OpenOpenSDKComponentID,
  49. /**
  50. * AtlasEncrypt ComponentID
  51. */
  52. OpenAtlasEncryptComponentID,
  53. /**
  54. * SimulatorDetect ComponentID
  55. */
  56. OpenSimulatorDetectComponentID,
  57. /**
  58. * NoCpatcha ComponentID
  59. */
  60. OpenNoCaptchaComponentID,
  61. /**
  62. * 无效component
  63. */
  64. OpenInvalidComponentID
  65. } OpenSecurityGuardComponentID;
  66. /**
  67. * 签名接口,详细定义见:IOpenSecureSignatureComponent.h
  68. */
  69. @protocol IOpenSecureSignatureComponent;
  70. /**
  71. * 动态数据存储接口,详细定义见:IOpenDynamicDataStoreComponent.h
  72. */
  73. @protocol IOpenDynamicDataStoreComponent;
  74. /**
  75. * 静态数据存储接口,详细定义见:IOpenStaticDataStoreComponent.h
  76. */
  77. @protocol IOpenStaticDataStoreComponent;
  78. /**
  79. * 静态数据存储接口,详细定义见:IOpenStaticDataEncryptComponent.h
  80. */
  81. @protocol IOpenStaticDataEncryptComponent;
  82. /**
  83. * 数据采集接口,详细定义见:IOpenDataCollectionComponent.h
  84. */
  85. @protocol IOpenDataCollectionComponent;
  86. /**
  87. * 动态数据加密接口,详细定义见:IOpenDynamicDataEncryptComponent.h
  88. */
  89. @protocol IOpenDynamicDataEncryptComponent;
  90. /**
  91. * 静态密钥安全加密接口,详细定义见:IOpenStaticKeyEncryptComponent.h
  92. */
  93. @protocol IOpenStaticKeyEncryptComponent;
  94. /**
  95. * 获取 umid 接口, 详细定义见 IUMIDComponent.h
  96. */
  97. @protocol IOpenUMIDComponent;
  98. /**
  99. * 获取 openSDK 接口, 详细定义见 IOpenOpenSDKComponent.h
  100. */
  101. @protocol IOpenOpenSDKComponent;
  102. /**
  103. * 增强加解密接口, 详细定义见 IOpenAtlasEncryptComponent.h
  104. */
  105. @protocol IOpenAtlasEncryptComponent;
  106. /**
  107. * NoCaptcha接口, 详细定义见 IOpenNocpatchaComponent.h
  108. */
  109. @protocol IOpenNoCaptchaComponent;
  110. /**
  111. * 模拟器检测接口, 详细定义见 IOpenSimulatorDetectComponent.h
  112. */
  113. @protocol IOpenSimulatorDetectComponent;
  114. /**
  115. * SecurityGuardSDK管理类
  116. */
  117. @interface OpenSecurityGuardManager : NSObject
  118. /**
  119. * 获取SecurityGuardManager单例对象
  120. *
  121. * @return SecurityGuardManager单例对象
  122. */
  123. + (OpenSecurityGuardManager*) getInstance;
  124. /**
  125. * 获取安全签名接口
  126. *
  127. * @return 返回签名接口,失败时nil
  128. */
  129. - (id<IOpenSecureSignatureComponent>) getSecureSignatureComp;
  130. /**
  131. * 获取动态数据存储接口
  132. *
  133. * @return 返回动态数据存储接口,失败时nil
  134. */
  135. - (id<IOpenDynamicDataStoreComponent>) getDynamicDataStoreComp;
  136. /**
  137. * 获取静态数据存储接口
  138. *
  139. * @return 返回静态数据存储接口,失败时nil
  140. */
  141. - (id<IOpenStaticDataStoreComponent>) getStaticDataStoreComp;
  142. /**
  143. * 获取静态数据加密接口
  144. *
  145. * @return 返回模拟器检测模块,失败时nil
  146. */
  147. - (id<IOpenStaticDataEncryptComponent>) getStaticDataEncryptComp;
  148. /**
  149. * 获取数据采集接口
  150. *
  151. * @return 返回数据采集接口,失败时返回nil
  152. */
  153. - (id<IOpenDataCollectionComponent>) getDataCollectionComp;
  154. /**
  155. * 获取动态数据存储接口
  156. *
  157. * @return 返回动态数据存储接口,失败时返回nil
  158. */
  159. - (id<IOpenDynamicDataEncryptComponent>) getDynamicDataEncryptComp;
  160. /**
  161. * 获取静态密钥安全加解密接口
  162. *
  163. * @return 返回静态密钥安全加解密接口,失败时返回nil
  164. */
  165. - (id<IOpenStaticKeyEncryptComponent>) getStaticKeyEncryptComp;
  166. /**
  167. * 获取UMID接口
  168. *
  169. * @return 返回UMID接口,失败返回nil
  170. */
  171. - (id<IOpenUMIDComponent>) getUMIDComp;
  172. /**
  173. * 获取OpenSDK接口
  174. *
  175. * @return 返回OpenSDK接口,失败返回nil
  176. */
  177. - (id<IOpenOpenSDKComponent>) getOpenOpenSDKComp;
  178. /**
  179. * 获取增强加密接口
  180. *
  181. * @return 返回增强加密接口,失败返回nil
  182. */
  183. - (id<IOpenAtlasEncryptComponent>) getAtlasEncryptComp;
  184. /**
  185. * 获取NoCaptcha接口
  186. *
  187. * @return 返回NoCaptcha接口,失败返回nil
  188. */
  189. - (id<IOpenNoCaptchaComponent>) getNoCaptchaComp;
  190. /**
  191. * 获取模拟器检测接口
  192. *
  193. * @return 返回模拟器检测接口,失败返回nil
  194. */
  195. - (id<IOpenSimulatorDetectComponent>) getSimulatorDetectComp;
  196. /**
  197. * 根据传入的component id获取对应的component对象
  198. *
  199. * @param componentId 目标compoent的id
  200. *
  201. * @return 返回componentId对应的component对象,失败时返回nil
  202. */
  203. - (id) getComponent: (OpenSecurityGuardComponentID) componentId;
  204. /**
  205. * 根据传入的 protocol 获取接口
  206. *
  207. * @param protocol 要获取的 interface
  208. *
  209. * @return 返回的实现 protocol 的对象
  210. */
  211. - (id) getInterface: (Protocol*) protocol;
  212. /**
  213. * 获取sdk当前版本号
  214. *
  215. * @return sdk当前版本号
  216. */
  217. - (NSString*) getSDKVersion;
  218. /**
  219. * 是否为外部版本的无线保镖SDK
  220. *
  221. * @return 是否为外部版本的无线保镖SDK
  222. */
  223. - (BOOL) isOpen;
  224. @end