Class: ProtectionData

ProtectionData

Data provided for a particular piece of content to customize license server URLs, license server HTTP request headers, clearkeys, or other content-specific data


new ProtectionData(serverURL, httpRequestHeaders, clearkeys)

Parameters:
Name Type Description
serverURL string | object

a license server URL to use with this key system. When specified as a string, a single URL will be used regardless of message type. When specified as an object, the object will have property names for each message type (message types defined here) with the corresponding property value being the URL to use for messages of that type

httpRequestHeaders Object

headers to add to the http request

clearkeys Object

defines a set of clear keys that are available to the key system. Object properties are base64-encoded keyIDs (with no padding). Corresponding property values are keys, base64-encoded (no padding).

Source:

Members


<static, readonly> clearkeys :Object

ClearKey key-pairs that can be used to decrypt the content

Type:
  • Object
Source:

<static, readonly> httpRequestsHeaders :Object

HTTP Request Headers for use in license requests. Each property name in the object is a header name with its corresponding header value being the property value

Type:
  • Object
Source:

<static, readonly> serverURL :string|object

License server URL

Type:
  • string | object
Source: