Show / Hide Table of Contents

    Class Manager

    Definition

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

    This class is a base class of the XxxManager classes. It provides the common methods for all sub classes.

    public class Manager
    Inheritance
    Object
    Manager
    Derived
    CertificateManager
    DataManager
    KeyManager
    Pkcs12Manager

    Methods

    View Source

    CreateFullAlias(String, String)

    Creates a new full alias, which is 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. This should be package ID if data owner is application. If you want to access data stored by system services, use CreateFullSystemAlias() instead.

    String alias

    Data alias.

    Returns
    Type Description
    String
    API Level: 3
    View Source

    CreateFullSystemAlias(String)

    Creates a new full alias, which is 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
    API Level: 3
    View Source

    RemoveAlias(String)

    Removes an entry (no matter of 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
    ArgumentNullException

    The alias is null.

    ArgumentException

    The alias is in the invalid format.

    InvalidOperationException

    The alias does not exist.

    API Level: 3
    View Source

    SetPermission(String, String, Int32)

    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.

    Int32 permissions

    Mask of permissions(Permission enum) granted for an application with otherPackageId.

    Remarks

    Data identified by alias should exist.

    Exceptions
    Type Condition
    ArgumentNullException

    The alias or otherPackageId is null.

    ArgumentException

    The alias or otherPackageId is in the invalid format.

    InvalidOperationException

    The alias does not exist.

    API Level: 3
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX