From: Lukasz Foniok Date: Tue, 2 Feb 2016 16:36:01 +0000 (+0100) Subject: [Key Manager] Guide and tutorial X-Git-Tag: tizen_3.0/TD_SYNC/20161201~171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9b9ae25b5dd1b0131c3ce4c851891af97ee6665;p=sdk%2Fonline-doc.git [Key Manager] Guide and tutorial Change-Id: I9000bb72a4f11e8ac89386c14986013398c15ed8 Signed-off-by: Lukasz Foniok --- diff --git a/org.tizen.guides/html/index.htm b/org.tizen.guides/html/index.htm index 7acc2d2..ae90dea 100644 --- a/org.tizen.guides/html/index.htm +++ b/org.tizen.guides/html/index.htm @@ -80,6 +80,11 @@
  • Secure Element
  • +
  • Security + +
  • Social
    • Bookmark
    • diff --git a/org.tizen.guides/html/web/tizen/security/keymanager_w.htm b/org.tizen.guides/html/web/tizen/security/keymanager_w.htm new file mode 100644 index 0000000..c33c6b8 --- /dev/null +++ b/org.tizen.guides/html/web/tizen/security/keymanager_w.htm @@ -0,0 +1,106 @@ + + + + + + + + + + + + + Key Manager + + + +
      +
      +

      Mobile Web Wearable Web

      +
      + +
      +

      Related Info

      + +
      +
      + +
      +

      Key Manager

      + +

      The key manager provides functions to securely store keys, certificates, and sensitive data related to users and their password-protected APPs. Additionally, it provides secure cryptographic operations for non-exportable keys without revealing the key values to clients.

      + + +

      A key manager stores keys, certificates, and sensitive user data in a central secure repository. The central secure repository is protected by a password.

      + +

      The main features of the Key Manager API include:

      + +
        +
      • Data store policy +

        A client can specify simple access rules when storing data in the key manager:

        +
          +
        • Extractable or non-extractable +
            +
          • Only for data tagged as extractable, the key manager returns the raw value of the data.
          • +
          • If data is tagged as non-extractable, the key manager does not return its raw value. In that case, the key manager provides secure cryptographic operations for non-exportable keys without revealing the key values to the clients.
        • +
        • Per key password +
            +
          • All data in the key manager is protected by a user password.
          • +
          • A client can encrypt its data using their own password additionally.
          • +
          • If a client provides a password when storing data, the data is encrypted with the password. This password must be provided when getting the data from the key manager.
        • +
        +
      • +
      • User login + +

        The user login control is implemented as follows:

        + +
          +
        • A user's database file is encrypted by the user's DKEK (domain key encryption key). A DKEK of a user is randomly generated and stored as encrypted with a user password when a user logs in for the first time.
        • +
        • When a user logs in, the key manager decrypts the user DKEK with a user password. During the login session, any client can access the data which is protected by a user password. When a user logs out, the key manager removes the user DKEK from the memory.
        • +
        • When a user logs in, logs out, or changes their password, the key manager must be notified. Only privileged APPs, such as LockScreen APP or Setting APP, can notify the key manager.
        • +
        • When a user changes their password, the key manager re-encrypts the user DKEK with the new password.
        • +
        +
      • + +
      • Data access control + +

        By default, only the owner of a data can access to the data. If the owner grants the access to other applications, those applications can read or delete the data from the key manager database.

        +

        When an application is deleted, the data and access control information granted by the application are also removed.

        +
      • +
      + +

      Figure: Key manager process

      +

      Key manager process

      + +

      The key manager provides 1 types of APIs (in mobile applications):

      + + + +
      + +Go to top + + + + + + + diff --git a/org.tizen.guides/html/web/tizen/security/security_guide_w.htm b/org.tizen.guides/html/web/tizen/security/security_guide_w.htm new file mode 100644 index 0000000..f3e8600 --- /dev/null +++ b/org.tizen.guides/html/web/tizen/security/security_guide_w.htm @@ -0,0 +1,62 @@ + + + + + + + + + + + + + Security + + + +
      +
      +

      Mobile Web Wearable Web

      +
      + +
      +

      Related Info

      + +
      +
      + +
      +

      Security

      +

      Security features include information on how your application can store and recall data in secured manner.

      + +

      The main security features are:

      +
        +
      • Key Manager

        Allows you to use Security functionalities, such as storing and recalling private data. + + + + +

      + +Go to top + + + + + + + diff --git a/org.tizen.guides/index.xml b/org.tizen.guides/index.xml index 4e9eb81..44594d4 100644 --- a/org.tizen.guides/index.xml +++ b/org.tizen.guides/index.xml @@ -45,6 +45,9 @@ + + + diff --git a/org.tizen.tutorials/html/index.htm b/org.tizen.tutorials/html/index.htm index 7fc3b5e..de9b7c4 100644 --- a/org.tizen.tutorials/html/index.htm +++ b/org.tizen.tutorials/html/index.htm @@ -35,6 +35,7 @@
  • Tizen
  • +
  • Key Manager
  • Account
  • @@ -98,6 +99,12 @@
  • Secure Element
  • +
  • Security + +
  • Social
    • Bookmark
    • diff --git a/org.tizen.tutorials/html/web/tizen/security/keymanager_tutorial_w.htm b/org.tizen.tutorials/html/web/tizen/security/keymanager_tutorial_w.htm new file mode 100644 index 0000000..6b9da55 --- /dev/null +++ b/org.tizen.tutorials/html/web/tizen/security/keymanager_tutorial_w.htm @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + Key Manager: Save, get, or remove data + + + + + + +
      +

      Key Manager: Save, get, or remove data

      + +

      Save data in Key Manager

      +
        +
      1. Save data

        + var data_name = "data1", raw_data = "my data";
        +
        + function onSave() {
        +     console.log("Successfully saved data");
        + }
        +
        + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
        + 
      2. +
      3. +

        Application this time set permission for application with id 9PdoiICQ4c to remove its data.

        +
        +  var data_name = "data1", raw_data = "my data";
        +
        + function onPermissionSet() {
        +     console.log("Successfully set permission");
        + }
        +
        + function onSave() {
        +     // Dictionary does not require package ID because an
        +     // application can only set permission for data which it saved
        +     tizen.keymanager.setPermission({
        +         "name": data_name
        +     }, "9PdoiICQ4c", "READ_REMOVE", onPermissionSet);
        + }
        +
        + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
        + 
      4. +
      + +

      Remove data from Key Manager

      +
        +
      1. Remove data from application which added particular data.

        + var data_name = "data1", raw_data = "my data";
        +
        + function onSave() {
        +
        +     // do something
        +
        +     // Dictionary does not require package ID because the
        +     // application which is calling removeData() saved "data1"
        +     tizen.keymanager.removeData({
        +         "name": data_name
        +     });
        + }
        +
        + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
        + 
      2. + +
      3. Remove data from other application with assuming that application which, added data gave, permission for it.

        + +

        Now the other application can remove it assuming they are on list item 0

        +
        +
        + var aliases = tizen.keymanager.getDataAliasList();
        +
        + if (aliases.length != 0) {
        +     // Assuming the application calling removeData() has permission
        +     // to remove aliases[0]
        +     var app_data = tizen.keymanager.removeData(aliases[0]);
        + }
        + 
      4. +
      + +

      Get Data from key manager

      +
        +
      1. Getdata from application which added particular data.

        + var data_name = "data1", raw_data = "my data";
        +
        + var data_name = "data1", raw_data = "my data";
        +
        + function onSave() {
        +     // Dictionary does not require package ID because the
        +     // application which is calling getData() saved "data1"
        +     var app_data = tizen.keymanager.getData({
        +         "name": data_name
        +     });
        +     console.log("App data: " + app_data + " was retrieved");
        + }
        +
        + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
        + 
      2. + +
      3. Get data from other application with assuming that application, which added data, gave permission for it.

        + +

        Now the other application can read it assuming they are on list item 0

        +
        +
        + var aliases = tizen.keymanager.getDataAliasList();
        +
        + if (aliases.length != 0) {
        +     // Assuming the application calling getData() has permission to read
        +     // aliases[0]
        +     var app_data = tizen.keymanager.getData(aliases[0]);
        +     console.log("App data: " + app_data + " was retrieved");
        + }
        + 
      4. + +
      + + + + +
      + +Go to top + + + + + + + diff --git a/org.tizen.tutorials/html/web/tizen/security/security_tutorials_w.htm b/org.tizen.tutorials/html/web/tizen/security/security_tutorials_w.htm new file mode 100644 index 0000000..efd5034 --- /dev/null +++ b/org.tizen.tutorials/html/web/tizen/security/security_tutorials_w.htm @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + Security: Storing and recalling data in secure storage + + + + +
      +
      +

      Mobile Web Wearable Web

      +
      +
      +

      Related Info

      + +
      +
      + +
      +

      Security: Storing and recalling data in secure storage

      + + +

      The Security tutorials demonstrate how to use the following features in creating Tizen Web applications:

      + + + + + + +
      + +Go to top + + + + + + + diff --git a/org.tizen.tutorials/index.xml b/org.tizen.tutorials/index.xml index e9d9c69..8597ae4 100644 --- a/org.tizen.tutorials/index.xml +++ b/org.tizen.tutorials/index.xml @@ -53,6 +53,9 @@ + + + @@ -66,7 +69,10 @@ - + + + + diff --git a/org.tizen.web.apireference/html/device_api/mobile/index.html b/org.tizen.web.apireference/html/device_api/mobile/index.html index 21f623c..131c3b2 100644 --- a/org.tizen.web.apireference/html/device_api/mobile/index.html +++ b/org.tizen.web.apireference/html/device_api/mobile/index.html @@ -218,6 +218,15 @@ Optional No +

      Security

      + + + + + + +
      APIDescriptionVersion (Since)MobileSupported on
      Mobile Emulator
      + KeymanagerThis API provides interfaces and methods for a secure repository for storing, retrieving and removing the sensitive data of users and their applications 3.0MandatoryYes

      Social

      APIDescriptionVersion (Since)MobileSupported on
      Mobile Emulator
      diff --git a/org.tizen.web.apireference/html/device_api/mobile/tizen/keymanager.html b/org.tizen.web.apireference/html/device_api/mobile/tizen/keymanager.html new file mode 100644 index 0000000..b3e9676 --- /dev/null +++ b/org.tizen.web.apireference/html/device_api/mobile/tizen/keymanager.html @@ -0,0 +1,683 @@ + + + + + +KeyManager API + + +
      +

      KeyManager API

      +
      + The KeyManager API provides a secure repository for storing, retrieving and removing the sensitive data of users and their applications. Users can protect the data with passwords. +
      +

      + Since: + 3.0 +

      +

      Table of Contents

      +
      +
      +

      Summary of Interfaces and Methods

      + + + + + + + + + + + + + + + + + + + +
      InterfaceMethod
      KeyManagerObject
      KeyManagervoid saveData (DOMString name, RawData rawData, optional DOMString? password, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback)
      + void removeData (KeyManagerAlias dataAlias)
      + RawData getData (KeyManagerAlias dataAlias, optional DOMString? password)
      + KeyManagerAlias[] getDataAliasList ()
      + void setPermission (KeyManagerAlias dataAlias, PackageId packageId, PermissionType permissionType, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback)
      KeyManagerAlias
      +
      +

      1. Type Definitions

      +
      +

      1.1. RawData

      +
      + Data to be stored or retrieved. +
      +
        typedef DOMString RawData;
      +

      + Since: + 3.0 +

      +
      +
      +

      1.2. PermissionType

      +
      + An enumerator to indicate permissions. +
      +
        enum PermissionType{
      +      "NONE",
      +      "READ",
      +      "REMOVE",
      +      "READ_REMOVE"
      +  };
      +

      + Since: + 3.0 +

      +
      +
        +
      • + NONE - Clears or removes permissions
      • +
      • + READ - Permission to read data
      • +
      • + REMOVE - Permission to remove data
      • +
      • + READ_REMOVE - Permission to read and remove data
      • +
      +
      +
      +
      +
      +

      2. Interfaces

      +
      +

      2.1. KeyManagerObject

      +
      + The KeyManagerObject interface defines what is instantiated by the Tizen object from the Tizen Platform. +
      +
        [NoInterfaceObject] interface KeyManagerObject {
      +      readonly attribute KeyManager keymanager;
      +  };
      +
        Tizen implements KeyManagerObject;
      +

      + Since: + 3.0 +

      +
      +

      +The tizen.keymanager object allows access to the functionality of the KeyManager API. +

      +
      +
      +
      +

      2.2. KeyManager

      +
        [NoInterfaceObject] interface KeyManager {
      +
      +    void saveData(DOMString name,
      +                  RawData rawData,
      +                  optional DOMString? password,
      +                  optional SuccessCallback? successCallback,
      +                  optional ErrorCallback? errorCallback) raises (WebAPIException);
      +
      +    void removeData(KeyManagerAlias dataAlias) raises (WebAPIException);
      +
      +    RawData getData(KeyManagerAlias dataAlias, optional DOMString? password) raises (WebAPIException);
      +
      +    KeyManagerAlias[] getDataAliasList() raises (WebAPIException);
      +
      +    void setPermission(KeyManagerAlias dataAlias,
      +                       PackageId packageId,
      +                       PermissionType permissionType,
      +                       optional SuccessCallback? successCallback,
      +                       optional ErrorCallback? errorCallback) raises (WebAPIException);
      +  };
      +
      +

      Methods

      +
      +
      +saveData +
      +
      +
      + Saves and stores data as a KeyManagerAlias inside the KeyManager. +
      +
      void saveData(DOMString name, RawData rawData, optional DOMString? password, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback);
      +             
      +

      + Since: + 3.0 +

      +
      +

      +On success, this method will add a KeyManagerAlias into the KeyManager. The name attribute of that KeyManagerAlias will be set to be the value of the name parameter which is used in this method call. The packageId attribute of that KeyManagerAlias will automatically be set to be the package ID of the application which calls this method. +

      +

      +The ErrorCallback is launched with these error types: +

      +
        +
      • +UnknownError - If the method cannot be completed because of an unknown error.
      • +
      +
      +

      + Privilege level: + public +

      +

      + Privilege: + http://tizen.org/privilege/keymanager +

      +
      +

      Parameters:

      +
        +
      • +name: + Name to identify the data - this will be the name attribute of the KeyManagerAlias which this method adds, on success, into the KeyManager +
      • +
      • +rawData: + Raw data to be stored +
      • +
      • +password [optional] [nullable]: + Password to use for encrypting the data +
      • +
      • +successCallback [optional] [nullable]: + Callback function that is called when data is successfully saved +
      • +
      • +errorCallback [optional] [nullable]: + Callback function that is called when an error occurs +
      • +
      +
      +
      +

      Exceptions:

      +
      • WebAPIException
          +
        • + with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter. +

        • +
        • + with error type SecurityError, if the application does not have the privilege to call this method. +

        • +
        +
      +
      +
      +

      Code example:

       var data_name = "data1", raw_data = "my data";
      +
      + function onSave() {
      +     console.log("Successfully saved data");
      + }
      +
      + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
      + 
      +
      +
      +
      +removeData +
      +
      +
      + Removes data from the KeyManager. +
      +
      void removeData(KeyManagerAlias dataAlias);
      +             
      +

      + Since: + 3.0 +

      +
      +

      +To remove data, an application must have permission to remove that data. By default, an application which saved data into the KeyManager has permission to remove the data. An application can also use the setPermission method to allow another application to remove its data. +

      +

      +If an application calls this method to remove data which it saved into the KeyManager, the dataAlias parameter does not require the packageId attribute. +

      +
      +

      + Privilege level: + public +

      +

      + Privilege: + http://tizen.org/privilege/keymanager +

      +
      +

      Parameters:

      +
        +
      • +dataAlias: + Alias of the data to remove +
      • +
      +
      +
      +

      Exceptions:

      +
      • WebAPIException
          +
        • + with error type NotFoundError, if the dataAlias cannot be found. +

        • +
        • + with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter. +

        • +
        • + with error type SecurityError, if the application does not have the privilege to call this method. +

        • +
        • + with error type UnknownError, if the method cannot be completed because of an unknown error +

        • +
        +
      +
      +
      +

      Code example:

       var data_name = "data1", raw_data = "my data";
      +
      + function onSave() {
      +
      +     // do something
      +
      +     // Dictionary does not require package ID because the
      +     // application which is calling removeData() saved "data1"
      +     tizen.keymanager.removeData({
      +         "name": data_name
      +     });
      + }
      +
      + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
      + 
      +
      +
      +

      Code example:

       var aliases = tizen.keymanager.getDataAliasList();
      +
      + if (aliases.length != 0) {
      +     // Assuming the application calling removeData() has permission
      +     // to remove aliases[0]
      +     var app_data = tizen.keymanager.removeData(aliases[0]);
      + }
      + 
      +
      +
      +
      +getData +
      +
      +
      + Gets raw data from the KeyManager. +
      +
      RawData getData(KeyManagerAlias dataAlias, optional DOMString? password);
      +             
      +

      + Since: + 3.0 +

      +
      +

      +To get raw data, an application must have permission to get that raw data. By default, an application which saved raw data into the KeyManager has permission to get that raw data. An application can also use the setPermission method to allow another application to get and read its raw data. +

      +

      +If an application calls this method to retrieve raw data which it saved into the KeyManager, the dataAlias parameter does not require the packageId attribute. +

      +
      +

      + Privilege level: + public +

      +

      + Privilege: + http://tizen.org/privilege/keymanager +

      +
      +

      Parameters:

      +
        +
      • +dataAlias: + Alias of the data to get +
      • +
      • +password [optional] [nullable]: + Password which was used to encrypt the data +
      • +
      +
      +
      +

      Return value:

      + RawData Data. +
      +
      +

      Exceptions:

      +
      • WebAPIException
          +
        • + with error type NotFoundError, if the dataAlias cannot be found. +

        • +
        • + with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter. +

        • +
        • + with error type SecurityError, if the application does not have the privilege to call this method. +

        • +
        • + with error type VerificationError, if the method cannot be completed because an incorrect password is used. +

        • +
        • + with error type UnknownError, if the method cannot be completed because of a database access failure or any other unknown error. +

        • +
        +
      +
      +
      +

      Code example:

       var data_name = "data1", raw_data = "my data";
      +
      + function onSave() {
      +     // Dictionary does not require package ID because the
      +     // application which is calling getData() saved "data1"
      +     var app_data = tizen.keymanager.getData({
      +         "name": data_name
      +     });
      +     console.log("App data: " + app_data + " was retrieved");
      + }
      +
      + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
      + 
      +
      +
      +

      Code example:

       var aliases = tizen.keymanager.getDataAliasList();
      +
      + if (aliases.length != 0) {
      +     // Assuming the application calling getData() has permission to read
      +     // aliases[0]
      +     var app_data = tizen.keymanager.getData(aliases[0]);
      +     console.log("App data: " + app_data + " was retrieved");
      + }
      + 
      +
      +
      +
      +getDataAliasList +
      +
      +
      + Gets all the aliases which an application can access. +
      +
      KeyManagerAlias[] getDataAliasList();
      +             
      +

      + Since: + 3.0 +

      +

      + Privilege level: + public +

      +

      + Privilege: + http://tizen.org/privilege/keymanager +

      +
      +

      Return value:

      + KeyManagerAlias[] Array of aliases. +
      +
      +

      Exceptions:

      +
      • WebAPIException
          +
        • + with error type SecurityError, if the application does not have the privilege to call this method. +

        • +
        • + with error type UnknownError, if the method cannot be completed because of an unknown error. +

        • +
        +
      +
      +
      +

      Code example:

       var aliases = tizen.keymanager.getDataAliasList();
      +
      + console.log("aliases: ");
      + for (var i = 0; i < aliases.length; i++) {
      +     console.log("Package ID: " + aliases[i].packageId + ", Name: "
      +             + aliases[i].name);
      + }
      + 
      +
      +
      +
      +setPermission +
      +
      +
      + Sets permissions that another application has for accessing an application's data. +
      +
      void setPermission(KeyManagerAlias dataAlias, PackageId packageId, PermissionType permissionType, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback);
      +             
      +

      + Since: + 3.0 +

      +
      +

      +An application can only set permissions for data which it saved into the KeyManager. Therefore, the dataAlias parameter does not require the packageId attribute. +

      +

      +The ErrorCallback is launched with these error types: +

      +
        +
      • +NotFoundError - If the dataAlias cannot be found.
      • +
      • +UnknownError - If the method cannot be completed because of an unknown error.
      • +
      +
      +

      + Privilege level: + public +

      +

      + Privilege: + http://tizen.org/privilege/keymanager +

      +
      +

      Parameters:

      +
        +
      • +dataAlias: + Alias the data for which permission will be set +
      • +
      • +packageId: + Package ID of the accessor application +
      • +
      • +permissionType: + Permission to grant to the accessor application +
      • +
      • +successCallback [optional] [nullable]: + Callback function that is called when permission is successfully set +
      • +
      • +errorCallback [optional] [nullable]: + Callback function that is called when an error occurs +
      • +
      +
      +
      +

      Exceptions:

      +
      • WebAPIException
          +
        • + with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter. +

        • +
        • + with error type SecurityError, if the application does not have the privilege to call this method. +

        • +
        +
      +
      +
      +

      Code example:

       var data_name = "data1", raw_data = "my data";
      +
      + function onPermissionSet() {
      +     console.log("Successfully set permssion");
      + }
      +
      + function onSave() {
      +     // Dictionary does not require package ID because an
      +     // application can only set permission for data which it saved
      +     tizen.keymanager.setPermission({
      +         "name": data_name
      +     }, "9PdoiICQ4c", "READ_REMOVE", onPermissionSet);
      + }
      +
      + tizen.keymanager.saveData(data_name, raw_data, null, onSave);
      + 
      +
      +
      +

      Code example:

       var aliases = tizen.keymanager.getDataAliasList();
      +
      + function onPermissionSet() {
      +     console.log("Successfully set permssion");
      + }
      +
      + if (aliases.length != 0) {
      +     // Check that the application calling setPermission() saved aliases[0] into
      +     // the KeyManager
      +     if (aliases[0].packageId === tizen.package.getPackageInfo().id) {
      +         tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
      +                 onPermissionSet);
      +     } else {
      +         console.log("This application did not save aliases[0] into the KeyManager");
      +     }
      + }
      + 
      +
      +
      +
      +
      +
      +
      +

      2.3. KeyManagerAlias

      +
      + The KeyManagerAlias dictionary identifies items in the KeyManager. +
      +
        dictionary KeyManagerAlias {
      +    PackageId packageId;
      +
      +    DOMString name;
      +  };
      +

      + Since: + 3.0 +

      +
      +

      Dictionary members

      +
      +
      PackageId packageId
      +
      +
      + Package ID of the application which saved the item into the KeyManager. +
      +

      + Since: + 3.0 +

      +
      +
      DOMString name
      +
      +
      + Name which describes the item. +
      +
      +

      +If this attribute contains any spaces, the spaces will be removed. Characters which are separated by spaces will be concatenated. +

      +
      +

      + Since: + 3.0 +

      +
      +
      +
      +
      +
      +

      3. Full WebIDL

      +
      module KeyManager {
      +  typedef DOMString RawData;
      +
      +  enum PermissionType{
      +      "NONE",
      +      "READ",
      +      "REMOVE",
      +      "READ_REMOVE"
      +  };
      +
      +  [NoInterfaceObject] interface KeyManagerObject {
      +      readonly attribute KeyManager keymanager;
      +  };
      +  Tizen implements KeyManagerObject;
      +
      +  [NoInterfaceObject] interface KeyManager {
      +
      +    void saveData(DOMString name,
      +                  RawData rawData,
      +                  optional DOMString? password,
      +                  optional SuccessCallback? successCallback,
      +                  optional ErrorCallback? errorCallback) raises (WebAPIException);
      +
      +    void removeData(KeyManagerAlias dataAlias) raises (WebAPIException);
      +
      +    RawData getData(KeyManagerAlias dataAlias, optional DOMString? password) raises (WebAPIException);
      +
      +    KeyManagerAlias[] getDataAliasList() raises (WebAPIException);
      +
      +    void setPermission(KeyManagerAlias dataAlias,
      +                       PackageId packageId,
      +                       PermissionType permissionType,
      +                       optional SuccessCallback? successCallback,
      +                       optional ErrorCallback? errorCallback) raises (WebAPIException);
      +  };
      +
      +  dictionary KeyManagerAlias {
      +    PackageId packageId;
      +
      +    DOMString name;
      +  };
      +};
      +
      + + + diff --git a/org.tizen.web.apireference/html/index.htm b/org.tizen.web.apireference/html/index.htm index a62d2c0..83ac430 100644 --- a/org.tizen.web.apireference/html/index.htm +++ b/org.tizen.web.apireference/html/index.htm @@ -79,6 +79,11 @@
    • Sound
    • +
    • Security + +
    • Social