harmony(鸿蒙)用户身份认证子系统JS API变更

2022-08-09 浏览 (881)

用户身份认证子系统JS API变更

OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,用户身份认证子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.userIAM.userAuthAuthTrustLevelATL4 = 40000新增
ohos.userIAM.userAuthAuthTrustLevelATL3 = 30000新增
ohos.userIAM.userAuthAuthTrustLevelATL2 = 20000新增
ohos.userIAM.userAuthAuthTrustLevelATL1 = 10000新增
ohos.userIAM.userAuthUserAuthTypeFINGERPRINT = 4新增
ohos.userIAM.userAuthUserAuthTypeFACE = 2新增
ohos.userIAM.userAuthFingerprintTipsFINGERPRINT_AUTH_TIP_TOO_SLOW = 5新增
ohos.userIAM.userAuthFingerprintTipsFINGERPRINT_AUTH_TIP_TOO_FAST = 4新增
ohos.userIAM.userAuthFingerprintTipsFINGERPRINT_AUTH_TIP_PARTIAL = 3新增
ohos.userIAM.userAuthFingerprintTipsFINGERPRINT_AUTH_TIP_INSUFFICIENT = 2新增
ohos.userIAM.userAuthFingerprintTipsFINGERPRINT_AUTH_TIP_DIRTY = 1新增
ohos.userIAM.userAuthFingerprintTipsFINGERPRINT_AUTH_TIP_GOOD = 0新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_NOT_DETECTED = 11新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_POOR_GAZE = 10新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_MUCH_MOTION = 9新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_LEFT = 8新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_RIGHT = 7新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_LOW = 6新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_HIGH = 5新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_FAR = 4新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_CLOSE = 3新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_DARK = 2新增
ohos.userIAM.userAuthFaceTipsFACE_AUTH_TIP_TOO_BRIGHT = 1新增
ohos.userIAM.userAuthResultCodeNOT_ENROLLED = 10新增
ohos.userIAM.userAuthResultCodeLOCKED = 9新增
ohos.userIAM.userAuthResultCodeINVALID_PARAMETERS = 8新增
ohos.userIAM.userAuthResultCodeBUSY = 7新增
ohos.userIAM.userAuthResultCodeTRUST_LEVEL_NOT_SUPPORT = 6新增
ohos.userIAM.userAuthResultCodeTYPE_NOT_SUPPORT = 5新增
ohos.userIAM.userAuthResultCodeTIMEOUT = 4新增
ohos.userIAM.userAuthResultCodeCANCELED = 3新增
ohos.userIAM.userAuthResultCodeGENERAL_ERROR = 2新增
ohos.userIAM.userAuthResultCodeFAIL = 1新增
ohos.userIAM.userAuthResultCodeSUCCESS = 0新增
ohos.userIAM.userAuthAuthResultfreezingTime ?: number;新增
ohos.userIAM.userAuthAuthResultremainTimes ?: number;新增
ohos.userIAM.userAuthAuthResulttoken ?: Uint8Array;新增
ohos.userIAM.userAuthIUserAuthCallbackonAcquireInfo ?: (module : number, acquire : number, extraInfo : any) => void;新增
ohos.userIAM.userAuthIUserAuthCallbackonResult: (result : number, extraInfo : AuthResult) => void;新增
ohos.userIAM.userAuthUserAuthcancelAuth(contextID : Uint8Array) : number;新增
ohos.userIAM.userAuthUserAuthauth(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array;新增
ohos.userIAM.userAuthUserAuthgetAvailableStatus(authType : UserAuthType, authTrustLevel : AuthTrustLevel) : number;新增
ohos.userIAM.userAuthUserAuthgetVersion() : number;新增
ohos.userIAM.userAuthUserAuthconstructor();新增
ohos.userIAM.userAuthuserAuthfunction getAuthenticator(): Authenticator;新增
ohos.userIAM.userAuthAuthenticatorexecute(type: AuthType, level: SecureLevel, callback: AsyncCallback<number>): void;
execute(type: AuthType, level: SecureLevel): Promise<number>;
新增
ohos.userIAM.userAuthAuthenticationResultGENERAL_ERROR = 100新增
ohos.userIAM.userAuthAuthenticationResultNOT_ENROLLED = 8新增
ohos.userIAM.userAuthAuthenticationResultLOCKED = 7新增
ohos.userIAM.userAuthAuthenticationResultINVALID_PARAMETERS = 6新增
ohos.userIAM.userAuthAuthenticationResultBUSY = 5新增
ohos.userIAM.userAuthAuthenticationResultCAMERA_FAIL = 4新增
ohos.userIAM.userAuthAuthenticationResultTIMEOUT = 3新增
ohos.userIAM.userAuthAuthenticationResultCANCELED = 2新增
ohos.userIAM.userAuthAuthenticationResultCOMPARE_FAILURE = 1新增
ohos.userIAM.userAuthAuthenticationResultSUCCESS = 0新增
ohos.userIAM.userAuthAuthenticationResultNO_SUPPORT = -1新增

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)3.1 release相对于3.1 beta变更详细说明

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)无障碍子系统JS API变更

harmony(鸿蒙)帐号子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)电源服务子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/8cc19dcc4f0246c784bafc0b67ae4725