Class KeySystemConfiguration.Builder
-
- All Implemented Interfaces:
public class KeySystemConfiguration.Builder
The builder for the key system configuration.
-
-
Constructor Summary
Constructors Constructor Description KeySystemConfiguration.Builder(String licenseAcquisitionURL)
Creates a builder for the key system configuration.
-
Method Summary
Modifier and Type Method Description KeySystemConfiguration.Builder
headers(@NonNull() Map<String, String> headers)
Sets the map of HTTP headers for the license acquisition request. KeySystemConfiguration.Builder
useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests. KeySystemConfiguration.Builder
queryParameters(@NonNull() Map<String, String> queryParameters)
Sets the map of query parameters for the license acquisition request. KeySystemConfiguration.Builder
licenseType(@NonNull() LicenseType licenseType)
Sets the license type. KeySystemConfiguration.Builder
certificate(@NonNull() Array<byte> certificate)
Sets the certificate. KeySystemConfiguration
build()
Builds the key system configuration. -
-
Constructor Detail
-
KeySystemConfiguration.Builder
KeySystemConfiguration.Builder(String licenseAcquisitionURL)
Creates a builder for the key system configuration.- Parameters:
licenseAcquisitionURL
- The license acquisition URL.
-
-
Method Detail
-
headers
@NonNull() KeySystemConfiguration.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() KeySystemConfiguration.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() KeySystemConfiguration.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.
-
licenseType
@NonNull() KeySystemConfiguration.Builder licenseType(@NonNull() LicenseType licenseType)
Sets the license type.
- Parameters:
licenseType
- The LicenseType.
-
certificate
@NonNull() KeySystemConfiguration.Builder certificate(@NonNull() Array<byte> certificate)
Sets the certificate.
- Parameters:
certificate
- The certificate to be used.
-
build
@NonNull() KeySystemConfiguration build()
Builds the key system configuration.
-
-
-
-