public class DrmKey extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
DrmKey()  | 
DrmKey(DrmKey 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 | 
|---|---|
String | 
getIv()
Get Required when FairPlay uses the AES encryption method. 
 | 
String | 
getKey()
Get DRM key, which is a 32-bit hexadecimal string. 
 | 
String | 
getKeyId()
Get Required for Widevine encryption. 
 | 
String | 
getKeyUri()
Get The URI of the license server when AES-128 is used. 
 | 
String | 
getTrack()
Get Required for Widevine encryption. 
 | 
void | 
setIv(String Iv)
Set Required when FairPlay uses the AES encryption method. 
 | 
void | 
setKey(String Key)
Set DRM key, which is a 32-bit hexadecimal string. 
 | 
void | 
setKeyId(String KeyId)
Set Required for Widevine encryption. 
 | 
void | 
setKeyUri(String KeyUri)
Set The URI of the license server when AES-128 is used. 
 | 
void | 
setTrack(String Track)
Set Required for Widevine encryption. 
 | 
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 DrmKey()
public DrmKey(DrmKey source)
public String getKey()
public void setKey(String Key)
Key - DRM key, which is a 32-bit hexadecimal string.
Note: uppercase letters in the string will be automatically converted to lowercase ones.public String getTrack()
public void setTrack(String Track)
Track - Required for Widevine encryption. Valid values: SD, HD, UHD1, UHD2, AUDIO, ALL.
ALL refers to all tracks. If this parameter is set to ALL, no other tracks can be added.
Note: this field may return null, indicating that no valid values can be obtained.public String getKeyId()
public void setKeyId(String KeyId)
KeyId - Required for Widevine encryption. It is a 32-bit hexadecimal string.
Note: uppercase letters in the string will be automatically converted to lowercase ones.
Note: this field may return null, indicating that no valid values can be obtained.public String getIv()
public void setIv(String Iv)
Iv - Required when FairPlay uses the AES encryption method. It is a 32-bit hexadecimal string.
For more information about this parameter, please see: 
https://tools.ietf.org/html/rfc3826
Note: uppercase letters in the string will be automatically converted to lowercase ones.
Note: this field may return null, indicating that no valid values can be obtained.public String getKeyUri()
public void setKeyUri(String KeyUri)
KeyUri - The URI of the license server when AES-128 is used. This parameter may be empty.
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.