public class AssetOperator extends Object
AssetOperatorAbs interfaces and provides the capability of storing key asset data.
The AssetOperator interfaces can be used to securely store, delete, update, and query key asset data,
such as usernames and passwords.
This class implements the AssetOperatorAbs abstract class. For details about the abstract methods, see
AssetOperatorAbs.
SystemCapability.Security#ASSET| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
ASSET_TYPE_CREDIT_CARD |
Indicates the credit card information.
|
static int |
ASSET_TYPE_TOKEN |
Indicates the application token.
|
static int |
ASSET_TYPE_USERNAME_PASSWORD |
Indicates the username or password.
|
static int |
ERROR_CODE_DATABASE_ERROR |
Indicates a database operation exception.
|
static int |
ERROR_CODE_INVALID_ARGUMENT |
Indicates invalid parameters.
|
static int |
ERROR_CODE_PERMISSION_DENIED |
Indicates that permission verification fails.
|
static int |
ERROR_CODE_SYSTEM_ERROR |
Indicates a system error.
|
static int |
ERROR_CODE_UNINITIALIZED |
Indicates that the Asset service is not initialized.
|
static int |
ERROR_CODE_UNSECURED_ENVIRONMENT |
Indicates that the environment is insecure.
|
static String |
INTENT_PARAMS_KEY_ACCESSLIMITATION |
Indicates the identifier for restricted access.
|
static String |
INTENT_PARAMS_KEY_AEADASSET |
Indicates the data that cannot be processed in a batch, such as the password.
|
static String |
INTENT_PARAMS_KEY_APPTAG |
Indicates the application identity, such as the package name.
|
static String |
INTENT_PARAMS_KEY_ASSETHANDLE |
Indicates the data index value.
|
static String |
INTENT_PARAMS_KEY_ASSETTYPE |
Indicates the asset data type.
|
static String |
INTENT_PARAMS_KEY_AUTHENTICATELIMITATION |
Indicates the identifier for restricted authentication.
|
static String |
INTENT_PARAMS_KEY_BATCHASSET |
Indicates the data that can be processed in a batch, such as the username.
|
static String |
INTENT_PARAMS_KEY_EXTINFO |
Indicates the extended information.
|
static String |
INTENT_PARAMS_KEY_SELECT_MODE |
Indicates the query mode.
|
static String |
INTENT_PARAMS_KEY_SYNCLIMITATION |
Indicates the identifier for restricted synchronization.
|
static int |
SELECT_CONTINUE |
Indicates continuing with exact query.
|
static int |
SELECT_FROM_BEGIN |
Indicates a batch query starting from the beginning.
|
static int |
SELECT_ONCE |
Indicates a one-off exact query.
|
static int |
SUCCESS |
Indicates a successful operation.
|
public static final int ASSET_TYPE_CREDIT_CARD
public static final int ASSET_TYPE_TOKEN
public static final int ASSET_TYPE_USERNAME_PASSWORD
public static final int ERROR_CODE_DATABASE_ERROR
public static final int ERROR_CODE_INVALID_ARGUMENT
public static final int ERROR_CODE_PERMISSION_DENIED
public static final int ERROR_CODE_SYSTEM_ERROR
public static final int ERROR_CODE_UNINITIALIZED
public static final int ERROR_CODE_UNSECURED_ENVIRONMENT
public static final String INTENT_PARAMS_KEY_ACCESSLIMITATION
public static final String INTENT_PARAMS_KEY_AEADASSET
public static final String INTENT_PARAMS_KEY_APPTAG
public static final String INTENT_PARAMS_KEY_ASSETHANDLE
This constant can be used to input data index values for an exact query.
public static final String INTENT_PARAMS_KEY_ASSETTYPE
Supported values include ASSET_TYPE_USERNAME_PASSWORD, ASSET_TYPE_CREDIT_CARD,
and ASSET_TYPE_TOKEN. The default value is ASSET_TYPE_USERNAME_PASSWORD.
public static final String INTENT_PARAMS_KEY_AUTHENTICATELIMITATION
public static final String INTENT_PARAMS_KEY_BATCHASSET
public static final String INTENT_PARAMS_KEY_EXTINFO
public static final String INTENT_PARAMS_KEY_SELECT_MODE
This constant can be used to set the exact or batch query mode when the
AssetOperatorAbs#assetSelect(Ability, IntentParams) interface is called. The constant value
can be SELECT_ONCE, SELECT_FROM_BEGIN, or SELECT_CONTINUE.
public static final String INTENT_PARAMS_KEY_SYNCLIMITATION
public static final int SELECT_CONTINUE
public static final int SELECT_FROM_BEGIN
public static final int SELECT_ONCE
public static final int SUCCESS
public static AssetOperatorAbs getInstance()
AssetOperatorAbs instance in the singleton pattern.
You can use the obtained instance to invoke the abstract methods of the AssetOperatorAbs abstract
class. You cannot use the new method to create instances.
AssetOperatorAbs instance.