public class Vault extends ServiceEndpoint
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();
| Constructor and Description |
|---|
Vault(AppContext context) |
Vault(AppContext context,
java.lang.String providerAddress) |
| Modifier and Type | Method and Description |
|---|---|
BackupService |
getBackupService()
Get the backup service of the vault.
|
DatabaseService |
getDatabaseService()
Get the database service of the vault.
|
FilesService |
getFilesService()
Get the files service of the vault.
|
ScriptingService |
getScriptingService()
Get the scripting service of the vault.
|
getAccessToken, getAppContext, getAppDid, getAppInstanceDid, getLatestCommitId, getNodeInfo, getNodeVersion, getProviderAddress, getServiceDid, getServiceInstanceDid, getStorage, getUserDid, refreshAccessTokencreateService, openConnectionpublic Vault(AppContext context, java.lang.String providerAddress)
public Vault(AppContext context)
public FilesService getFilesService()
public DatabaseService getDatabaseService()
public ScriptingService getScriptingService()
public BackupService getBackupService()