Class KeyOSKeySystemConfiguration.Builder
-
- All Implemented Interfaces:
public class KeyOSKeySystemConfiguration.Builder
The builder for the KeyOS key system configuration.
-
-
Constructor Summary
Constructors Constructor Description KeyOSKeySystemConfiguration.Builder(String licenseAcquisitionURL)
Creates a builder for the KeyOS key system configuration.
-
Method Summary
Modifier and Type Method Description KeyOSKeySystemConfiguration.Builder
customdata(@NonNull() String customdata)
Sets the custom data for the license acquisition request. KeyOSKeySystemConfiguration.Builder
headers(@NonNull() Map<String, String> headers)
The map of HTTP headers for the license acquisition request. KeyOSKeySystemConfiguration.Builder
useCredentials(boolean useCredentials)
Sets whether the player is allowed to use credentials for cross-origin requests. KeyOSKeySystemConfiguration.Builder
queryParameters(@NonNull() Map<String, String> queryParameters)
Sets map of query parameters for the license acquisition request. KeyOSKeySystemConfiguration
build()
Builds the KeyOS key system configuration. -
-
Constructor Detail
-
KeyOSKeySystemConfiguration.Builder
KeyOSKeySystemConfiguration.Builder(String licenseAcquisitionURL)
Creates a builder for the KeyOS key system configuration.- Parameters:
licenseAcquisitionURL
- The license acquisition URL.
-
-
Method Detail
-
customdata
@NonNull() KeyOSKeySystemConfiguration.Builder customdata(@NonNull() String customdata)
Sets the custom data for the license acquisition request.
- The customdata attribute is required if it is not specified in the KeyOSDRMConfiguration.
- Parameters:
customdata
- The custom data for the license acquisition request.
-
headers
@NonNull() KeyOSKeySystemConfiguration.Builder headers(@NonNull() Map<String, String> headers)
The map of HTTP headers for the license acquisition request.
- Parameters:
headers
- Map of HTTP headers.
-
useCredentials
@NonNull() KeyOSKeySystemConfiguration.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
KeyOSKeySystemConfiguration.Builder queryParameters(@NonNull() Map<String, String> queryParameters)
Sets map of query parameters for the license acquisition request.
- Parameters:
queryParameters
- Map of query parameters for the license acquisition requests.
-
build
@NonNull() KeyOSKeySystemConfiguration build()
Builds the KeyOS key system configuration.
-
-
-
-