• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Account Subsystem
2
3The table below lists the APIs changes of the account subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.account.appAccount | Authenticator | getRemoteObject(): rpc.RemoteObject; | Added|
10| ohos.account.appAccount | Authenticator | isAccountRemovable(name: string, callback: AuthenticatorCallback): void; | Added|
11| ohos.account.appAccount | Authenticator | checkAccountLabels(name: string, labels: Array\<string>, callback: AuthenticatorCallback): void; | Added|
12| ohos.account.appAccount | Authenticator | setProperties(options: SetPropertiesOptions, callback: AuthenticatorCallback): void; | Added|
13| ohos.account.appAccount | Authenticator | verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void; | Added|
14| ohos.account.appAccount | AuthenticatorCallback | onRequestContinued?: () => void; | Added|
15| ohos.account.appAccount | Constants | KEY_BOOLEAN_RESULT = "booleanResult" | Added|
16| ohos.account.appAccount | Constants | KEY_REQUIRED_LABELS = "requiredLabels" | Added|
17| ohos.account.appAccount | SetPropertiesOptions | parameters?: {[key: string]: Object} | Added|
18| ohos.account.appAccount | SetPropertiesOptions | properties?: {[key: string]: Object}, | Added|
19| ohos.account.appAccount | VerifyCredentialOptions | parameters?: {[key:string]: Object} | Added|
20| ohos.account.appAccount | VerifyCredentialOptions | credential?: string, | Added|
21| ohos.account.appAccount | VerifyCredentialOptions | credentialType?: string, | Added|
22| ohos.account.appAccount | SelectAccountsOptions | requiredLabels?: Array\<string> | Added|
23| ohos.account.appAccount | SelectAccountsOptions | allowedOwners?: Array\<string>, | Added|
24| ohos.account.appAccount | SelectAccountsOptions | allowedAccounts?: Array\<AppAccountInfo>, | Added|
25| ohos.account.appAccount | OAuthTokenInfo | account?: AppAccountInfo; | Added|
26| ohos.account.appAccount | AppAccountManager | setAuthenticatorProperties(owner: string, callback: AuthenticatorCallback): void;<br>setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthenticatorCallback): void; | Added|
27| ohos.account.appAccount | AppAccountManager | verifyCredential(name: string, owner: string, callback: AuthenticatorCallback): void;<br>verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void; | Added|
28| ohos.account.appAccount | AppAccountManager | selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback\<Array\<AppAccountInfo>>);<br>selectAccountsByOptions(options: SelectAccountsOptions): Promise\<Array\<AppAccountInfo>>; | Added|
29| ohos.account.appAccount | AppAccountManager | deleteAccountCredential(name: string, credentialType: string, callback: AsyncCallback\<void>): void;<br>deleteAccountCredential(name: string, credentialType: string): Promise\<void>; | Added|
30| ohos.account.appAccount | AppAccountManager | checkAccountLabels(name: string, owner: string, labels: Array\<string>, callback: AsyncCallback\<boolean>): void;<br>checkAccountLabels(name: string, owner: string, labels: Array\<string>): Promise\<boolean>; | Added|
31| ohos.account.appAccount | AppAccountManager | checkAppAccess(name: string, bundleName: string, callback: AsyncCallback\<boolean>): void;<br>checkAppAccess(name: string, bundleName: string): Promise\<boolean>; | Added|
32| ohos.account.osAccount | ConstraintSourceTypeInfo | type: ConstraintSourceType; | Added|
33| ohos.account.osAccount | ConstraintSourceTypeInfo | localId: number; | Added|
34| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_TYPE_PROFILE_OWNER = 3 | Added|
35| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_TYPE_DEVICE_OWNER = 2 | Added|
36| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_TYPE_BASE = 1 | Added|
37| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_NOT_EXIST = 0 | Added|
38| ohos.account.osAccount | AccountManager | queryOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\<Array\<ConstraintSourceTypeInfo>>): void;<br>queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\<Array\<ConstraintSourceTypeInfo>>; | Added|
39| ohos.account.osAccount | AccountManager | isMainOsAccount(callback: AsyncCallback\<boolean>): void;<br>isMainOsAccount(): Promise\<boolean>; | Added|
40| ohos.account.osAccount | AccountManager | getBundleIdFromUid(uid: number, callback: AsyncCallback\<number>): void;<br>getBundleIdFromUid(uid: number): Promise\<number>; | Added|
41