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

82 lines
1.9 KiB

9 months ago
  1. //
  2. // APBAuthEngine.h
  3. // BioAuthEngine
  4. //
  5. // Created by yukun.tyk on 11/9/15.
  6. // Copyright © 2015 DTF. All rights reserved.
  7. //
  8. //
  9. #import <Foundation/Foundation.h>
  10. #import "BioAuthFacade.h"
  11. /**
  12. */
  13. typedef enum {
  14. BIO_FACE = 100, //人脸识别
  15. BIO_VOICE = 101, //声纹识别
  16. BIO_HANDWRITING = 103, //笔迹识别
  17. BIO_IDPAPERS = 107, //重构后的证件宝
  18. BIO_CARD = 109, //证件宝
  19. BIO_DTF_DOC = 110, //一体化证件宝
  20. BIO_FACE_VOICE = 202, //人脸+声纹识别
  21. BIO_FACE_EYE = 201, //人脸+眼纹识别
  22. BIO_CARD_FACE = 200, //人证合一
  23. BIO_TOYGER = 300, //Toyger产品
  24. }APBBioType;
  25. /**
  26. */
  27. typedef enum {
  28. ACTION_COLLECT = 300, //采集操作
  29. ACTION_VERFIY = 301, //验证操作
  30. }APBActionType;
  31. @interface APBAuthEngine : NSObject
  32. /**
  33. * meta数据
  34. */
  35. + (NSString *)getBioMetaInfo;
  36. /**
  37. *
  38. */
  39. + (void)preLoad;
  40. /**
  41. *
  42. *
  43. * @param request
  44. * @param callback
  45. */
  46. - (void)authWithRequest:(APBRequest *)request withCallback:(BioAuthCallback)callback;
  47. /**
  48. *
  49. *
  50. * @param command
  51. * @param callback
  52. */
  53. - (void)exec:(APBCommand *)command withCompletionCallback:(BioAuthExecCallback)callback;
  54. /**
  55. *
  56. */
  57. - (BOOL)isBusy;
  58. /**
  59. *
  60. *
  61. * @return
  62. */
  63. - (NSString *)version;
  64. /**
  65. *
  66. */
  67. + (NSString *)getAuthFactorName;
  68. @end