Previous Topic: Fetching AccountsNext Topic: Deleting Accounts


API Details

The following table lists the input and output parameters of the getAccount() method:

Parameter

Description

Input Parameters

id

The unique identifier of the account that has to be fetched.

Output Parameters

account

The requested account.

The following table lists the input and output parameters of the getAllAccounts() method:

Parameter

Description

Input Parameters

None.

Output Parameters

account

An array of all the accounts present in the store.

The following table lists the input and output parameters of the getAllAccounts() method when a namespace is passed as input:

Parameter

Description

Input Parameters

ns

The namespace of the requested accounts.

Output Parameters

account

Array of accounts belonging to the specified namespace (domain) and also accounts from other namespaces that contain the search string in their name.

Exception

The OTPException class is returned if there any errors while reading the account from the storage location. See chapter, "ArcotID OTP SDK Exceptions and Error Codes" for more information on the exception class and errors returned by ArcotID OTP SDK.