程序包 org.elastos.hive

类 Vault


  • public class Vault
    extends ServiceEndpoint
    This class explicitly represents the vault service subscribed by "userDid".

    To use the vault, subscription is required.

          VaultSubscription subscription = new VaultSubscription(appContext, providerAddress);
          subscription.subscribe().get();
     

    Then the services belongs to the vault will be got by this class.

          Vault vault = new Vault(appContext, providerAddress);
          FilesService filesService = vault.getFilesService();
     
    • 构造器详细资料

      • Vault

        public Vault​(AppContext context,
                     java.lang.String providerAddress)
    • 方法详细资料

      • getFilesService

        public FilesService getFilesService()
        Get the files service of the vault.
        返回:
        The instance of the files service.
      • getDatabaseService

        public DatabaseService getDatabaseService()
        Get the database service of the vault.
        返回:
        The instance of the database service.
      • getScriptingService

        public ScriptingService getScriptingService()
        Get the scripting service of the vault.
        返回:
        The instance of the scripting service.
      • getBackupService

        public BackupService getBackupService()
        Get the backup service of the vault.
        返回:
        The instance of the backup service.