# Function: getDeviceCryptoFileHost

getDeviceCryptoFileHost(params?: GetDeviceCryptoFileHostParams): Promise‹GetDeviceCryptoFileHostRes

用于访问加密文件,访问流程为:先调用cryptoFileManager.getDeviceHost接口获取host、port、token参数。然后通过https://{host}:{port}?fileUrl={encode(url)}&token={token} 的地址来正常访问此加密文件,客户端会下载url对应的加密文件,并解密后返给web。(仅支持有乐)

# 参数:

属性 类型
params? GetDeviceCryptoFileHostParams

GetDeviceCryptoFileHostParams

属性 类型 描述
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹GetDeviceCryptoFileHostRes