Class ClearkeyKeySystemConfiguration.Builder
-
- All Implemented Interfaces:
public class ClearkeyKeySystemConfiguration.Builder
The builder for the ClearKey key system configuration.
-
-
Constructor Summary
Constructors Constructor Description ClearkeyKeySystemConfiguration.Builder(String licenseAcquisitionURL)
Creates a builder for the ClearKey key system configuration.
-
Method Summary
Modifier and Type Method Description ClearkeyKeySystemConfiguration.Builder
keys(@NonNull() Array<ClearkeyKeySystemConfiguration.ClearkeyDecryptionKey> keys)
Sets the list of decryption keys. ClearkeyKeySystemConfiguration.Builder
headers(@NonNull() Map<String, String> headers)
Sets the map of HTTP headers for the license acquisition request. ClearkeyKeySystemConfiguration.Builder
useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests. ClearkeyKeySystemConfiguration.Builder
queryParameters(@NonNull() Map<String, String> queryParameters)
Sets the map of query parameters for the license acquisition request. ClearkeyKeySystemConfiguration
build()
Builds the ClearKey key system configuration. -
-
Constructor Detail
-
ClearkeyKeySystemConfiguration.Builder
ClearkeyKeySystemConfiguration.Builder(String licenseAcquisitionURL)
Creates a builder for the ClearKey key system configuration.- Parameters:
licenseAcquisitionURL
- The license acquisition URL.
-
-
Method Detail
-
keys
@NonNull() ClearkeyKeySystemConfiguration.Builder keys(@NonNull() Array<ClearkeyKeySystemConfiguration.ClearkeyDecryptionKey> keys)
Sets the list of decryption keys.
- Parameters:
keys
- The list of decryption keys.
-
headers
@NonNull() ClearkeyKeySystemConfiguration.Builder headers(@NonNull() Map<String, String> headers)
Sets the map of HTTP headers for the license acquisition request.
- Parameters:
headers
- Map of HTTP headers.
-
useCredentials
@NonNull() ClearkeyKeySystemConfiguration.Builder useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests.
- Parameters:
useCredentials
- Whether the player is allowed to use credentials for cross-origin requests.
-
queryParameters
@NonNull() ClearkeyKeySystemConfiguration.Builder queryParameters(@NonNull() Map<String, String> queryParameters)
Sets the map of query parameters for the license acquisition request.
- Parameters:
queryParameters
- Map of query parameters for the license acquisition requests.
-
build
@NonNull() ClearkeyKeySystemConfiguration build()
Builds the ClearKey key system configuration.
-
-
-
-