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的所有加密密钥
|
DescribeFairPlayPemResponse |
DescribeFairPlayPem(DescribeFairPlayPemRequest req)
该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。
|
DescribeKeysResponse |
DescribeKeys(DescribeKeysRequest req)
开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥
如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回
|
ModifyFairPlayPemResponse |
ModifyFairPlayPem(ModifyFairPlayPemRequest req)
本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
如需使用fairplay方案,请务必先设置私钥。
|
StartEncryptionResponse |
StartEncryption(StartEncryptionRequest req)
开发者调用该接口,启动一次内容文件的DRM加密工作流。
注意:该接口已下线。
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public DrmClient(Credential credential, String region)
public DrmClient(Credential credential, String region, ClientProfile profile)
public AddFairPlayPemResponse AddFairPlayPem(AddFairPlayPemRequest req) throws TencentCloudSDKException
req
- AddFairPlayPemRequestTencentCloudSDKException
public CreateEncryptKeysResponse CreateEncryptKeys(CreateEncryptKeysRequest req) throws TencentCloudSDKException
req
- CreateEncryptKeysRequestTencentCloudSDKException
public CreateLicenseResponse CreateLicense(CreateLicenseRequest req) throws TencentCloudSDKException
req
- CreateLicenseRequestTencentCloudSDKException
public DeleteFairPlayPemResponse DeleteFairPlayPem(DeleteFairPlayPemRequest req) throws TencentCloudSDKException
req
- DeleteFairPlayPemRequestTencentCloudSDKException
public DescribeAllKeysResponse DescribeAllKeys(DescribeAllKeysRequest req) throws TencentCloudSDKException
req
- DescribeAllKeysRequestTencentCloudSDKException
public DescribeFairPlayPemResponse DescribeFairPlayPem(DescribeFairPlayPemRequest req) throws TencentCloudSDKException
req
- DescribeFairPlayPemRequestTencentCloudSDKException
public DescribeKeysResponse DescribeKeys(DescribeKeysRequest req) throws TencentCloudSDKException
req
- DescribeKeysRequestTencentCloudSDKException
public ModifyFairPlayPemResponse ModifyFairPlayPem(ModifyFairPlayPemRequest req) throws TencentCloudSDKException
req
- ModifyFairPlayPemRequestTencentCloudSDKException
public StartEncryptionResponse StartEncryption(StartEncryptionRequest req) throws TencentCloudSDKException
req
- StartEncryptionRequestTencentCloudSDKException
Copyright © 2021. All rights reserved.