洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.8 KiB

9 months ago
  1. //
  2. // ASSSecureOpenSdk.h
  3. // APPSecuritySDK
  4. //
  5. // Created by msq on 16/6/1.
  6. // Copyright © 2016年 Alipay. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "APSecureSdk.h"
  10. #import "ASSTokenResult.h"
  11. typedef void(^ASSSecureSdkCallbackOpen)(NSString* token, int errorCode);
  12. @interface ASSSecureOpenSdk : NSObject
  13. /*
  14. vkeyidapp启动时和收银台页面加载时调用SDK内部会根据时间戳和设备信息进行判断是否需要进行网络请求线
  15. @param appName
  16. @param appKeyClient
  17. @param callback Token作为参数
  18. */
  19. + (void)initToken:(NSString *)appName appKeyClient:(NSString *)appKeyClient callback:(ASSSecureSdkCallbackOpen)callback;
  20. /*
  21. vkeyidapp启动时和收银台页面加载时调用SDK内部会根据时间戳和设备信息进行判断是否需要进行网络请求线
  22. @param appName
  23. @param appKeyClient
  24. @param parameters
  25. @param callback Token作为参数
  26. */
  27. + (void)initToken:(NSString *)appName appKeyClient:(NSString *)appKeyClient parameters:(NSDictionary*)inArgs callback:(ASSSecureSdkCallbackOpen)callback;
  28. /*
  29. vkeyidapp启动时和收银台页面加载时调用线
  30. @param appName
  31. @param appKeyClient
  32. @param parameters
  33. @param callback Token作为参数
  34. */
  35. + (void)updateToken:(NSString *)appName appKeyClient:(NSString *)appKeyClient parameters:(NSDictionary*)inArgs callback:(ASSSecureSdkCallbackOpen)callback;
  36. /*
  37. VKEYID和VKEYID token的接口
  38. 1VKEYID将在旧版apdid存在的情况下返回旧版apdid
  39. 2VKEYID token将返回空字符串:@""
  40. */
  41. + (ASSTokenResultOpen*)getTokenResult;
  42. /*
  43. *exactID
  44. */
  45. + (NSString*)getExactID;
  46. /*
  47. *
  48. */
  49. + (void)setGatewayAddress:(NSString*)addr;
  50. + (void)setRpcConfiguration:(NSDictionary *) config;
  51. /**
  52. *
  53. * appName - zorro
  54. * appKeyClient - key elBwppCSr9nB1LIQ
  55. * action -
  56. * extParams - map方式传参
  57. */
  58. //+(APRiskResult*)APPerceptRisk:(NSString*)appName appKeyClient:(NSString*)appKeyClient userAction:(NSInteger)action extParams:(NSDictionary *)args;
  59. @end