1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16sequenceable OHOS.AAFwk.WantParams; 17sequenceable AppAccountInfo..OHOS.AccountSA.AppAccountAuthenticatorStringInfo; 18sequenceable AppAccountCommon..OHOS.AccountSA.CreateAccountImplicitlyOptions; 19sequenceable AppAccountCommon..OHOS.AccountSA.SetPropertiesOptions; 20sequenceable AppAccountCommon..OHOS.AccountSA.VerifyCredentialOptions; 21sequenceable OHOS.IRemoteObject; 22 23interface OHOS.AccountSA.IAppAccountAuthenticator { 24 void AddAccountImplicitly([in] String authType, [in] String callerBundleName, 25 [in] WantParams options, [in] IRemoteObject remoteObjCallback, [out] int funcResult); 26 void Authenticate([in] AppAccountAuthenticatorStringInfo appAccountAuthenticatorStringInfo, 27 [in] WantParams options, [in] IRemoteObject remoteObjCallback, [out] int funcResult); 28 void VerifyCredential([in] String name, [in] VerifyCredentialOptions options, 29 [in] IRemoteObject remoteObjCallback, [out] int funcResult); 30 void CheckAccountLabels([in] String name, [in] String[] labels, 31 [in] IRemoteObject remoteObjCallback, [out] int funcResult); 32 void SetProperties([in] SetPropertiesOptions options, 33 [in] IRemoteObject remoteObjCallback, [out] int funcResult); 34 void IsAccountRemovable([in] String name, [in] IRemoteObject remoteObjCallback, [out] int funcResult); 35 void CreateAccountImplicitly([in] CreateAccountImplicitlyOptions options, 36 [in] IRemoteObject remoteObjCallback, [out] int funcResult); 37 void Auth([in] String name, [in] String authType, [in] WantParams options, 38 [in] IRemoteObject remoteObjCallback, [out] int funcResult); 39}