public class Key extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Key() | 
| Key(Key source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | getInsertTimestamp()Get 该key生成时的时间戳
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getIv()Get 原始IV使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。 | 
| String | getKey()Get 原始Key使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。 | 
| String | getKeyId()Get 密钥ID。 | 
| String | getTrack()Get 加密track类型。Widevine支持SD、HD、UHD1、UHD2、AUDIO。Fairplay只支持HD。 | 
| void | setInsertTimestamp(Long InsertTimestamp)Set 该key生成时的时间戳
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setIv(String Iv)Set 原始IV使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。 | 
| void | setKey(String Key)Set 原始Key使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。 | 
| void | setKeyId(String KeyId)Set 密钥ID。 | 
| void | setTrack(String Track)Set 加密track类型。Widevine支持SD、HD、UHD1、UHD2、AUDIO。Fairplay只支持HD。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Key()
public Key(Key source)
public String getTrack()
public void setTrack(String Track)
Track - 加密track类型。Widevine支持SD、HD、UHD1、UHD2、AUDIO。Fairplay只支持HD。public String getKeyId()
public void setKeyId(String KeyId)
KeyId - 密钥ID。public String getKey()
public void setKey(String Key)
Key - 原始Key使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。public String getIv()
public void setIv(String Iv)
Iv - 原始IV使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。public Long getInsertTimestamp()
public void setInsertTimestamp(Long InsertTimestamp)
InsertTimestamp - 该key生成时的时间戳
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.