Class Manager
Definition
- Namespace:
- Tizen.Security.SecureRepository
- Assembly:
- Tizen.Security.SecureRepository.dll
This class is a base class of the XxxManager classes. It provides the common methods for all sub classes.
public class Manager
- Inheritance
-
objectManager
- Derived
Methods
View SourceCreateFullAlias(string, string)
Creates a new full alias, which is a concatenation of owner ID and alias.
Declaration
public static string CreateFullAlias(string ownerId, string alias)
Parameters
Type | Name | Description |
---|---|---|
string | ownerId | Data owner's ID. |
string | alias | Data alias. |
Returns
Type | Description |
---|---|
string | Full alias, a concatenation of owner ID and alias. |
Remarks
Data owner's ID should be package ID, if data owner is an application. If you want to access data stored by system services, use CreateFullSystemAlias() instead.
CreateFullSystemAlias(string)
Creates a new full alias, which is a concatenation of system service's owner ID and alias.
Declaration
public static string CreateFullSystemAlias(string alias)
Parameters
Type | Name | Description |
---|---|---|
string | alias | Data alias, which is owned by system service. |
Returns
Type | Description |
---|---|
string | Full alias, a concatenation of system service's owner ID and alias. |
RemoveAlias(string)
Removes an entry (no matter what type) from the key manager.
Declaration
public static void RemoveAlias(string alias)
Parameters
Type | Name | Description |
---|---|---|
string | alias | Item alias to be removed. |
Remarks
To remove item, client must remove permission to the specified item.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
System.ArgumentException | Thrown when |
System.InvalidOperationException | Thrown when |
SetPermission(string, string, int)
Allows another application to access client's application data.
Declaration
public static void SetPermission(string alias, string otherPackageId, int permissions)
Parameters
Type | Name | Description |
---|---|---|
string | alias | Item alias for which access will be granted. |
string | otherPackageId | Package ID of the application that will gain access rights. |
int | permissions | Mask of permissions(Permission enum) granted for an application with otherPackageId. |
Remarks
Data identified by alias should exist.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
System.ArgumentException | Thrown when |
System.InvalidOperationException | Thrown when |