From 7cbbdc89e7059600cdcb1c756a550fdc6a2aead7 Mon Sep 17 00:00:00 2001 From: liuziwei Date: Tue, 9 Jul 2024 10:47:14 +0800 Subject: [PATCH] fix code Signed-off-by: liuziwei Change-Id: I5a7ea3c2948db7a11839fd98b709bdcb75d813aa --- user_auth/v2_0/IUserAuthInterface.idl | 13 +++++++++++++ user_auth/v2_0/UserAuthTypes.idl | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/user_auth/v2_0/IUserAuthInterface.idl b/user_auth/v2_0/IUserAuthInterface.idl index 86bbc048..5c308b7a 100644 --- a/user_auth/v2_0/IUserAuthInterface.idl +++ b/user_auth/v2_0/IUserAuthInterface.idl @@ -495,5 +495,18 @@ interface IUserAuthInterface { * @version 1.0 */ SetGlobalConfigParam([in] GlobalConfigParam param); + /** + * @brief Get global config param. + * + * @param type Specified globalConfigType. See @{GlobalConfigType}. + * @param userIds Specified userIds. + * @param authTypes Specified authTypes, should not empty. + * @param value Matching globalConfigValue. See @{GlobalConfigValue}. + * @return Return get result(0:success; other:failed). + * + * @since 5.0 + * @version 1.0 + */ + GetGlobalConfigParam([in] int type, [in] int[] userIds, [in] int[] authTypes, [out] GlobalConfigValue value); } /** @} */ diff --git a/user_auth/v2_0/UserAuthTypes.idl b/user_auth/v2_0/UserAuthTypes.idl index 4dd0de81..c55cda58 100644 --- a/user_auth/v2_0/UserAuthTypes.idl +++ b/user_auth/v2_0/UserAuthTypes.idl @@ -489,6 +489,8 @@ enum GlobalConfigType : int { PIN_EXPIRED_PERIOD = 1, /** Enable specified authType capability. */ ENABLE_STATUS = 2, + /** Pin complexity regular expressions. */ + PIN_COMPLEXITY_REG = 3, }; /** @@ -502,6 +504,8 @@ union GlobalConfigValue { long pinExpiredPeriod; /** Enable specified authType capability.*/ boolean enableStatus; + /** Pin complexity regular expressions. */ + unsigned char[] pinComplexityReg; }; /** -- Gitee