public class SpekeDrm extends AbstractModel
header, skipSign| Constructor and Description |
|---|
SpekeDrm() |
SpekeDrm(SpekeDrm 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 |
getEncryptionMethod()
Get Encryption method.
|
String |
getEncryptionPreset()
Get Substream encryption rule.
|
String |
getKeyServerUrl()
Get DRM manufacturer access address.
|
String |
getResourceId()
Get Resource tagging.
|
String |
getVector()
Get Initialization vector for encryption (32-byte hexadecimal string).
|
void |
setEncryptionMethod(String EncryptionMethod)
Set Encryption method.
|
void |
setEncryptionPreset(String EncryptionPreset)
Set Substream encryption rule.
|
void |
setKeyServerUrl(String KeyServerUrl)
Set DRM manufacturer access address.
|
void |
setResourceId(String ResourceId)
Set Resource tagging.
|
void |
setVector(String Vector)
Set Initialization vector for encryption (32-byte hexadecimal string).
|
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 SpekeDrm()
public SpekeDrm(SpekeDrm source)
public String getResourceId()
public void setResourceId(String ResourceId)
ResourceId - Resource tagging. the field content is user-customized.
It supports 1 to 128 characters consisting of digits, letters, underscores (_), and hyphens (-).public String getKeyServerUrl()
public void setKeyServerUrl(String KeyServerUrl)
KeyServerUrl - DRM manufacturer access address. the field content is obtained from the drm manufacturer.
Note: different DRM manufacturers have different limitations on the number of substreams. for example, PallyCon limits the number of substreams to no more than 5, and DRMtoday only supports encryption of up to 9 substreams.public String getVector()
public void setVector(String Vector)
Vector - Initialization vector for encryption (32-byte hexadecimal string). the field content is user-customized.public String getEncryptionMethod()
public void setEncryptionMethod(String EncryptionMethod)
EncryptionMethod - Encryption method. cbcs: default method of FairPlay; cenc: default method of PlayReady and Widevine.
cbcs: supported by PlayReady, Widevine, and FairPlay
cenc: supported by PlayReady and Widevinepublic String getEncryptionPreset()
public void setEncryptionPreset(String EncryptionPreset)
EncryptionPreset - Substream encryption rule. Default value: preset0.
preset 0: use the same key to encrypt all substreams
preset1: use different keys for each substreamCopyright © 2025. All rights reserved.