Class: TencentCloud::Drm::V20181115::KeyParam

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181115/models.rb

Overview

设置加密密钥所需的参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(track = nil, key = nil, keyid = nil, iv = nil) ⇒ KeyParam

Returns a new instance of KeyParam.



685
686
687
688
689
690
# File 'lib/v20181115/models.rb', line 685

def initialize(track=nil, key=nil, keyid=nil, iv=nil)
  @Track = track
  @Key = key
  @KeyId = keyid
  @Iv = iv
end

Instance Attribute Details

#IvObject

SD、HD、UHD1、UHD2、AUDIO

Parameters:

  • Track:

    加密track类型。取值范围:

  • Key:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。

  • KeyId:

    密钥ID。

  • Iv:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。



683
684
685
# File 'lib/v20181115/models.rb', line 683

def Iv
  @Iv
end

#KeyObject

SD、HD、UHD1、UHD2、AUDIO

Parameters:

  • Track:

    加密track类型。取值范围:

  • Key:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。

  • KeyId:

    密钥ID。

  • Iv:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。



683
684
685
# File 'lib/v20181115/models.rb', line 683

def Key
  @Key
end

#KeyIdObject

SD、HD、UHD1、UHD2、AUDIO

Parameters:

  • Track:

    加密track类型。取值范围:

  • Key:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。

  • KeyId:

    密钥ID。

  • Iv:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。



683
684
685
# File 'lib/v20181115/models.rb', line 683

def KeyId
  @KeyId
end

#TrackObject

SD、HD、UHD1、UHD2、AUDIO

Parameters:

  • Track:

    加密track类型。取值范围:

  • Key:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。

  • KeyId:

    密钥ID。

  • Iv:

    请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。



683
684
685
# File 'lib/v20181115/models.rb', line 683

def Track
  @Track
end

Instance Method Details

#deserialize(params) ⇒ Object



692
693
694
695
696
697
# File 'lib/v20181115/models.rb', line 692

def deserialize(params)
  @Track = params['Track']
  @Key = params['Key']
  @KeyId = params['KeyId']
  @Iv = params['Iv']
end