public static class ClearkeyKeySystemConfiguration.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ClearkeyKeySystemConfiguration |
build()
Builds the ClearKey key system configuration.
|
static ClearkeyKeySystemConfiguration.Builder |
clearkeyKeySystemConfiguration(String licenseAcquisitionURL)
Creates a builder for the ClearKey key system configuration.
|
ClearkeyKeySystemConfiguration.Builder |
headers(Map<String,String> headers)
Sets the map of HTTP headers for the license acquisition request.
|
ClearkeyKeySystemConfiguration.Builder |
keys(ClearkeyKeySystemConfiguration.ClearkeyDecryptionKey[] keys)
Sets the list of decryption keys.
|
ClearkeyKeySystemConfiguration.Builder |
queryParameters(Map<String,String> queryParameters)
Sets the map of query parameters for the license acquisition request.
|
ClearkeyKeySystemConfiguration.Builder |
useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests.
|
public static ClearkeyKeySystemConfiguration.Builder clearkeyKeySystemConfiguration(String licenseAcquisitionURL)
licenseAcquisitionURL
- The license acquisition URL. (NonNull)public ClearkeyKeySystemConfiguration.Builder keys(ClearkeyKeySystemConfiguration.ClearkeyDecryptionKey[] keys)
keys
- The list of decryption keys. (NonNull)public ClearkeyKeySystemConfiguration.Builder headers(Map<String,String> headers)
headers
- Map of HTTP headers. (NonNull)public ClearkeyKeySystemConfiguration.Builder useCredentials(boolean useCredentials)
useCredentials
- Whether the player is allowed to use credentials for cross-origin requests.public ClearkeyKeySystemConfiguration.Builder queryParameters(Map<String,String> queryParameters)
queryParameters
- Map of query parameters for the license acquisition requests. (NonNull)public ClearkeyKeySystemConfiguration build()