Class DataManager

Definition

Namespace:
Tizen.Security.SecureRepository
Assembly:
Tizen.Security.SecureRepository.dll
API Level:
3

This class provides the methods for storing and retrieving data.

C#
Copy
public class DataManager : Manager
Inheritance
DataManager

Methods

View Source

Get(String, String)

Gets data from the secure repository.

Declaration
C#
Copy
public static byte[] Get(string alias, string password)
Parameters
Type Name Description
String alias

The name of a certificate to retrieve.

String password

The password used in decrypting a data value. If password of policy is provided in SaveData(), the same password should be provided.

Returns
Type Description
Byte[]

Data specified by alias.

API Level: 3
View Source

GetAliases()

Gets all aliases of data, which the client can access.

Declaration
C#
Copy
public static IEnumerable<string> GetAliases()
Returns
Type Description
IEnumerable<String>

All aliases of data, which the client can access.

API Level: 3
View Source

Save(String, Byte[], Policy)

Stores data inside the secure repository based on the provided policy.

Declaration
C#
Copy
public static void Save(string alias, byte[] data, Policy policy)
Parameters
Type Name Description
String alias

The name of data to be stored.

Byte[] data

The binary value to be stored.

Policy policy

The policy about how to store data securely.

API Level: 3

Extension Methods