diff --git a/api/@ohos.request.cacheDownload.d.ts b/api/@ohos.request.cacheDownload.d.ts index 814be95584c515ec7063ed657fdbf09212fc9d94..66e0442ed1efd39d53a446fc22c1e313292ac1d0 100644 --- a/api/@ohos.request.cacheDownload.d.ts +++ b/api/@ohos.request.cacheDownload.d.ts @@ -28,6 +28,30 @@ import { BusinessError } from './@ohos.base'; * @since 18 */ declare namespace cacheDownload { + /** + * The secure communication protocol. + * + * @enum { string } + * @syscap SystemCapability.Request.FileTransferAgent + * @since 21 + */ + enum SslType { + /** + * Transport Layer Security. + * + * @syscap SystemCapability.Request.FileTransferAgent + * @since 21 + */ + TLS = 'TLS', + /** + * Transport layer cryptography protocol. + * + * @syscap SystemCapability.Request.FileTransferAgent + * @since 21 + */ + TLCP = 'TLCP' + } + /** * Options of the cache download task. * @@ -44,6 +68,24 @@ declare namespace cacheDownload { * @since 18 */ headers?: Record; + /** + * Which secure communication protocol is used. + * If this value is not specified, use { @link SslType#TLS } by default. + * + * @type { ?SslType } + * @syscap SystemCapability.Request.FileTransferAgent + * @since 21 + */ + sslType?: SslType; + /** + * The path to the CA certificate within the application. + * The default value is an empty string. + * + * @type { ?string } + * @syscap SystemCapability.Request.FileTransferAgent + * @since 21 + */ + caPath?: string; } /**