public class DrmClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION| Constructor and Description | 
|---|
| DrmClient(Credential credential,
         String region) | 
| DrmClient(Credential credential,
         String region,
         ClientProfile profile) | 
| Modifier and Type | Method and Description | 
|---|---|
| AddFairPlayPemResponse | AddFairPlayPem(AddFairPlayPemRequest req)本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
如需使用fairplay方案,请务必先设置私钥。 | 
| CreateEncryptKeysResponse | CreateEncryptKeys(CreateEncryptKeysRequest req)该接口用来设置加密的密钥。注意,同一个content id,只能设置一次! | 
| CreateLicenseResponse | CreateLicense(CreateLicenseRequest req)本接口用来生成DRM方案对应的播放许可证,开发者需提供DRM方案类型、内容类型参数,后台将生成许可证后返回许可证数据
开发者需要转发终端设备发出的许可证请求信息。 | 
| DeleteFairPlayPemResponse | DeleteFairPlayPem(DeleteFairPlayPemRequest req)本接口用来删除fairplay方案的私钥、ask等信息
注:高风险操作,删除后,您将无法使用腾讯云DRM提供的fairplay服务。
由于缓存,删除操作需要约半小时生效 | 
| DescribeAllKeysResponse | DescribeAllKeys(DescribeAllKeysRequest req)本接口用来查询指定DRM类型、ContentType的所有加密密钥 | 
| DescribeDRMLicenseResponse | DescribeDRMLicense(DescribeDRMLicenseRequest req)开发者需要指定使用的DRM类型取值 NORMALAES、和需要加密的Track类型取值 SD,ContentType取值 LiveVideo | 
| DescribeFairPlayPemResponse | DescribeFairPlayPem(DescribeFairPlayPemRequest req)该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。 | 
| DescribeKeysResponse | DescribeKeys(DescribeKeysRequest req)开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥
如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回 | 
| GenerateTDRMKeyResponse | GenerateTDRMKey(GenerateTDRMKeyRequest req)开发者需要指定使用的DRM类型取值 NORMALAES、和需要加密的Track类型取值 SD,ContentType取值 LiveVideo | 
| ModifyFairPlayPemResponse | ModifyFairPlayPem(ModifyFairPlayPemRequest req)本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
如需使用fairplay方案,请务必先设置私钥。 | 
| StartEncryptionResponse | StartEncryption(StartEncryptionRequest req)开发者调用该接口,启动一次内容文件的DRM加密工作流。
注意:该接口已下线。 | 
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreakerpublic DrmClient(Credential credential, String region)
public DrmClient(Credential credential, String region, ClientProfile profile)
public AddFairPlayPemResponse AddFairPlayPem(AddFairPlayPemRequest req) throws TencentCloudSDKException
req - AddFairPlayPemRequestTencentCloudSDKExceptionpublic CreateEncryptKeysResponse CreateEncryptKeys(CreateEncryptKeysRequest req) throws TencentCloudSDKException
req - CreateEncryptKeysRequestTencentCloudSDKExceptionpublic CreateLicenseResponse CreateLicense(CreateLicenseRequest req) throws TencentCloudSDKException
req - CreateLicenseRequestTencentCloudSDKExceptionpublic DeleteFairPlayPemResponse DeleteFairPlayPem(DeleteFairPlayPemRequest req) throws TencentCloudSDKException
req - DeleteFairPlayPemRequestTencentCloudSDKExceptionpublic DescribeAllKeysResponse DescribeAllKeys(DescribeAllKeysRequest req) throws TencentCloudSDKException
req - DescribeAllKeysRequestTencentCloudSDKExceptionpublic DescribeDRMLicenseResponse DescribeDRMLicense(DescribeDRMLicenseRequest req) throws TencentCloudSDKException
req - DescribeDRMLicenseRequestTencentCloudSDKExceptionpublic DescribeFairPlayPemResponse DescribeFairPlayPem(DescribeFairPlayPemRequest req) throws TencentCloudSDKException
req - DescribeFairPlayPemRequestTencentCloudSDKExceptionpublic DescribeKeysResponse DescribeKeys(DescribeKeysRequest req) throws TencentCloudSDKException
req - DescribeKeysRequestTencentCloudSDKExceptionpublic GenerateTDRMKeyResponse GenerateTDRMKey(GenerateTDRMKeyRequest req) throws TencentCloudSDKException
req - GenerateTDRMKeyRequestTencentCloudSDKExceptionpublic ModifyFairPlayPemResponse ModifyFairPlayPem(ModifyFairPlayPemRequest req) throws TencentCloudSDKException
req - ModifyFairPlayPemRequestTencentCloudSDKExceptionpublic StartEncryptionResponse StartEncryption(StartEncryptionRequest req) throws TencentCloudSDKException
req - StartEncryptionRequestTencentCloudSDKExceptionCopyright © 2025. All rights reserved.