public static class KeyOSKeySystemConfiguration.Builder extends Object
Modifier and Type | Method and Description |
---|---|
KeyOSKeySystemConfiguration |
build()
Builds the KeyOS key system configuration.
|
KeyOSKeySystemConfiguration.Builder |
customdata(String customdata)
Sets the custom data for the license acquisition request.
|
KeyOSKeySystemConfiguration.Builder |
headers(Map<String,String> headers)
The map of HTTP headers for the license acquisition request.
|
static KeyOSKeySystemConfiguration.Builder |
keyOsKeySystemConfiguration(String licenseAcquisitionURL)
Creates a builder for the KeyOS key system configuration.
|
KeyOSKeySystemConfiguration.Builder |
queryParameters(Map<String,String> queryParameters)
Sets map of query parameters for the license acquisition request.
|
KeyOSKeySystemConfiguration.Builder |
useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests.
|
public static KeyOSKeySystemConfiguration.Builder keyOsKeySystemConfiguration(String licenseAcquisitionURL)
licenseAcquisitionURL
- The license acquisition URL. (NonNull)public KeyOSKeySystemConfiguration.Builder customdata(String customdata)
customdata
- The custom data for the license acquisition request. (NonNull)
- The customdata attribute is required if it is not specified in the KeyOSDRMConfiguration
.
public KeyOSKeySystemConfiguration.Builder headers(Map<String,String> headers)
headers
- Map of HTTP headers. (NonNull)public KeyOSKeySystemConfiguration.Builder useCredentials(boolean useCredentials)
useCredentials
- Whether the player is allowed to use credentials for cross-origin requests.public KeyOSKeySystemConfiguration.Builder queryParameters(Map<String,String> queryParameters)
queryParameters
- Map of query parameters for the license acquisition requests. (NonNull)public KeyOSKeySystemConfiguration build()