Class DrmClient
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractClient
-
- com.tencentcloudapi.drm.v20181115.DrmClient
-
public class DrmClient extends AbstractClient
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
-
-
Constructor Summary
Constructors Constructor Description DrmClient(Credential credential, String region)DrmClient(Credential credential, String region, ClientProfile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddFairPlayPemResponseAddFairPlayPem(AddFairPlayPemRequest req)本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。 如需使用fairplay方案,请务必先设置私钥。CreateEncryptKeysResponseCreateEncryptKeys(CreateEncryptKeysRequest req)该接口用来设置加密的密钥。注意,同一个content id,只能设置一次!CreateLicenseResponseCreateLicense(CreateLicenseRequest req)本接口用来生成DRM方案对应的播放许可证,开发者需提供DRM方案类型、内容类型参数,后台将生成许可证后返回许可证数据 开发者需要转发终端设备发出的许可证请求信息。DeleteFairPlayPemResponseDeleteFairPlayPem(DeleteFairPlayPemRequest req)本接口用来删除fairplay方案的私钥、ask等信息 注:高风险操作,删除后,您将无法使用腾讯云DRM提供的fairplay服务。 由于缓存,删除操作需要约半小时生效DescribeAllKeysResponseDescribeAllKeys(DescribeAllKeysRequest req)本接口用来查询指定DRM类型、ContentType的所有加密密钥DescribeFairPlayPemResponseDescribeFairPlayPem(DescribeFairPlayPemRequest req)该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。DescribeKeysResponseDescribeKeys(DescribeKeysRequest req)开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥 如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回ModifyFairPlayPemResponseModifyFairPlayPem(ModifyFairPlayPemRequest req)本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。 如需使用fairplay方案,请务必先设置私钥。StartEncryptionResponseStartEncryption(StartEncryptionRequest req)开发者调用该接口,启动一次内容文件的DRM加密工作流。 注意:该接口已下线。-
Methods inherited from class com.tencentcloudapi.common.AbstractClient
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
-
-
-
-
Constructor Detail
-
DrmClient
public DrmClient(Credential credential, String region)
-
DrmClient
public DrmClient(Credential credential, String region, ClientProfile profile)
-
-
Method Detail
-
AddFairPlayPem
public AddFairPlayPemResponse AddFairPlayPem(AddFairPlayPemRequest req) throws TencentCloudSDKException
本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。 如需使用fairplay方案,请务必先设置私钥。- Parameters:
req- AddFairPlayPemRequest- Returns:
- AddFairPlayPemResponse
- Throws:
TencentCloudSDKException
-
CreateEncryptKeys
public CreateEncryptKeysResponse CreateEncryptKeys(CreateEncryptKeysRequest req) throws TencentCloudSDKException
该接口用来设置加密的密钥。注意,同一个content id,只能设置一次!- Parameters:
req- CreateEncryptKeysRequest- Returns:
- CreateEncryptKeysResponse
- Throws:
TencentCloudSDKException
-
CreateLicense
public CreateLicenseResponse CreateLicense(CreateLicenseRequest req) throws TencentCloudSDKException
本接口用来生成DRM方案对应的播放许可证,开发者需提供DRM方案类型、内容类型参数,后台将生成许可证后返回许可证数据 开发者需要转发终端设备发出的许可证请求信息。- Parameters:
req- CreateLicenseRequest- Returns:
- CreateLicenseResponse
- Throws:
TencentCloudSDKException
-
DeleteFairPlayPem
public DeleteFairPlayPemResponse DeleteFairPlayPem(DeleteFairPlayPemRequest req) throws TencentCloudSDKException
本接口用来删除fairplay方案的私钥、ask等信息 注:高风险操作,删除后,您将无法使用腾讯云DRM提供的fairplay服务。 由于缓存,删除操作需要约半小时生效- Parameters:
req- DeleteFairPlayPemRequest- Returns:
- DeleteFairPlayPemResponse
- Throws:
TencentCloudSDKException
-
DescribeAllKeys
public DescribeAllKeysResponse DescribeAllKeys(DescribeAllKeysRequest req) throws TencentCloudSDKException
本接口用来查询指定DRM类型、ContentType的所有加密密钥- Parameters:
req- DescribeAllKeysRequest- Returns:
- DescribeAllKeysResponse
- Throws:
TencentCloudSDKException
-
DescribeFairPlayPem
public DescribeFairPlayPemResponse DescribeFairPlayPem(DescribeFairPlayPemRequest req) throws TencentCloudSDKException
该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。- Parameters:
req- DescribeFairPlayPemRequest- Returns:
- DescribeFairPlayPemResponse
- Throws:
TencentCloudSDKException
-
DescribeKeys
public DescribeKeysResponse DescribeKeys(DescribeKeysRequest req) throws TencentCloudSDKException
开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥 如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回- Parameters:
req- DescribeKeysRequest- Returns:
- DescribeKeysResponse
- Throws:
TencentCloudSDKException
-
ModifyFairPlayPem
public ModifyFairPlayPemResponse ModifyFairPlayPem(ModifyFairPlayPemRequest req) throws TencentCloudSDKException
本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。 如需使用fairplay方案,请务必先设置私钥。- Parameters:
req- ModifyFairPlayPemRequest- Returns:
- ModifyFairPlayPemResponse
- Throws:
TencentCloudSDKException
-
StartEncryption
public StartEncryptionResponse StartEncryption(StartEncryptionRequest req) throws TencentCloudSDKException
开发者调用该接口,启动一次内容文件的DRM加密工作流。 注意:该接口已下线。- Parameters:
req- StartEncryptionRequest- Returns:
- StartEncryptionResponse
- Throws:
TencentCloudSDKException
-
-