洛阳学员端
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.

69 lines
1.6 KiB

7 months ago
  1. //
  2. // IBioAuthFactor.h
  3. // BioAuthEngine
  4. //
  5. // Created by yukun.tyk on 11/9/15.
  6. // Copyright © 2015 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol IBioAuthTask;
  10. @class APBRequest, APBResponse;
  11. /**
  12. * globalConfig key
  13. * CGFloatAPBEvent dispatch给当时运行的task
  14. * 使task在globalInfo中将kGlobalTimerSwitchKey开关设置为YES后才开始计时
  15. */
  16. extern NSString *const kGlobalTimeoutKey;
  17. /**
  18. *
  19. */
  20. @protocol IBioAuthFactor <NSObject>
  21. /**
  22. *
  23. */
  24. @property(nonatomic, copy, readonly)NSString *factorName;
  25. /**
  26. *
  27. *
  28. * @param request
  29. */
  30. - (instancetype)initWithRequest:(APBRequest *)request;
  31. /**
  32. * task队列
  33. */
  34. - (NSArray<id<IBioAuthTask>> *)getTasks;
  35. /**
  36. * ()
  37. */
  38. - (NSMutableDictionary *)getGlobalConfig;
  39. /**
  40. * response之前repsonse
  41. */
  42. - (void)finalizeResponse:(APBResponse *)response;
  43. /**
  44. * sdk版本号
  45. */
  46. + (NSString *)getVersion;
  47. @optional
  48. /**
  49. *
  50. */
  51. - (void)onEngineWillRestart:(NSMutableDictionary *)pipeInfo;
  52. /**
  53. *
  54. */
  55. + (NSDictionary *)getMetaInfo;
  56. @end