Class ClearkeyKeySystemConfiguration.Builder
-
- All Implemented Interfaces:
public class ClearkeyKeySystemConfiguration.BuilderThe 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.Builderkeys(@NonNull() Array<ClearkeyKeySystemConfiguration.ClearkeyDecryptionKey> keys)Sets the list of decryption keys. ClearkeyKeySystemConfiguration.Builderheaders(@NonNull() Map<String, String> headers)Sets the map of HTTP headers for the license acquisition request. ClearkeyKeySystemConfiguration.BuilderuseCredentials(boolean useCredentials)Sets whether the player is allowed to use credentials for cross-origin requests. ClearkeyKeySystemConfiguration.BuilderqueryParameters(@NonNull() Map<String, String> queryParameters)Sets the map of query parameters for the license acquisition request. ClearkeyKeySystemConfigurationbuild()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.
-
-
-
-