Class KeyOSDRMConfiguration.Builder
-
- All Implemented Interfaces:
public class KeyOSDRMConfiguration.Builder
The builder for the KeyOS DRM configuration.
-
-
Constructor Summary
Constructors Constructor Description KeyOSDRMConfiguration.Builder()
Creates a builder for the KeyOS DRM configuration.
-
Method Summary
Modifier and Type Method Description KeyOSDRMConfiguration.Builder
customdata(@NonNull() String customdata)
Sets the custom data which will be used for the license acquisition request. KeyOSDRMConfiguration.Builder
playready(@NonNull() KeyOSKeySystemConfiguration playready)
Sets the PlayReady KeyOS key system configuration. KeyOSDRMConfiguration.Builder
playready(@NonNull() String playready)
The license acquisition URL used for the PlayReady key system. KeyOSDRMConfiguration.Builder
widevine(@NonNull() KeyOSKeySystemConfiguration widevine)
Sets the Widevine KeyOS key system configuration. KeyOSDRMConfiguration.Builder
widevine(@NonNull() String widevine)
The license acquisition URL used for the Widevine key system. KeyOSDRMConfiguration
build()
Builds the KeyOS DRM Configuration. -
-
Method Detail
-
customdata
@NonNull() KeyOSDRMConfiguration.Builder customdata(@NonNull() String customdata)
Sets the custom data which will be used for the license acquisition request.
- This attribute is required if it is not specified in the separate KeyOSKeySystemConfiguration for Widevine and PlayReady.
- The value of this attribute should be the value of the customData header that you want to send with license requests to the KeyOS license server.
- In most cases this will be the base64 encoded KeyOS authentication XML.
- Parameters:
customdata
- The custom data.
-
playready
@NonNull() KeyOSDRMConfiguration.Builder playready(@NonNull() KeyOSKeySystemConfiguration playready)
Sets the PlayReady KeyOS key system configuration.
- Parameters:
playready
- The PlayReady KeyOS key system.
-
playready
@NonNull() KeyOSDRMConfiguration.Builder playready(@NonNull() String playready)
The license acquisition URL used for the PlayReady key system.
- Parameters:
playready
- The PlayReady license acquisition URL.
-
widevine
@NonNull() KeyOSDRMConfiguration.Builder widevine(@NonNull() KeyOSKeySystemConfiguration widevine)
Sets the Widevine KeyOS key system configuration.
- Parameters:
widevine
- The Widevine KeyOS key system.
-
widevine
@NonNull() KeyOSDRMConfiguration.Builder widevine(@NonNull() String widevine)
The license acquisition URL used for the Widevine key system.
- Parameters:
widevine
- The Widevine license acquisition URL.
-
build
@NonNull() KeyOSDRMConfiguration build()
Builds the KeyOS DRM Configuration.
-
-
-
-