public static class KeySystemConfiguration.Builder extends Object
Modifier and Type | Method and Description |
---|---|
KeySystemConfiguration |
build()
Builds the key system configuration.
|
KeySystemConfiguration.Builder |
headers(Map<String,String> headers)
Sets the map of HTTP headers for the license acquisition request.
|
static KeySystemConfiguration.Builder |
keySystemConfiguration(String licenseAcquisitionURL)
Creates a builder for the key system configuration.
|
KeySystemConfiguration.Builder |
licenseType(byte[] certificate)
Sets the certificate.
|
KeySystemConfiguration.Builder |
licenseType(LicenseType licenseType)
Sets the license type.
|
KeySystemConfiguration.Builder |
queryParameters(Map<String,String> queryParameters)
Sets the map of query parameters for the license acquisition request.
|
KeySystemConfiguration.Builder |
useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests.
|
public static KeySystemConfiguration.Builder keySystemConfiguration(String licenseAcquisitionURL)
licenseAcquisitionURL
- The license acquisition URL. (NonNull)public KeySystemConfiguration.Builder headers(Map<String,String> headers)
headers
- Map of HTTP headers. (NonNull)public KeySystemConfiguration.Builder useCredentials(boolean useCredentials)
useCredentials
- Whether the player is allowed to use credentials for cross-origin requests.public KeySystemConfiguration.Builder queryParameters(Map<String,String> queryParameters)
queryParameters
- Map of query parameters for the license acquisition requests. (NonNull)public KeySystemConfiguration.Builder licenseType(LicenseType licenseType)
licenseType
- The LicenseType
. (NonNull)public KeySystemConfiguration.Builder licenseType(byte[] certificate)
certificate
- The certificate to be used. (NonNull)public KeySystemConfiguration build()