Class KeyOSDRMConfiguration.Builder
-
- All Implemented Interfaces:
public final class KeyOSDRMConfiguration.BuilderThe builder for the KeyOS DRM configuration.
-
-
Constructor Summary
Constructors Constructor Description KeyOSDRMConfiguration.Builder()
-
Method Summary
Modifier and Type Method Description final KeyOSDRMConfiguration.Buildercustomdata(String customdata)Sets the custom data which will be used for the license acquisition request. final KeyOSDRMConfiguration.Builderplayready(KeyOSKeySystemConfiguration playready)Sets the PlayReady KeyOS key system configuration. final KeyOSDRMConfiguration.Builderplayready(String playready)The license acquisition URL used for the PlayReady key system. final KeyOSDRMConfiguration.Builderwidevine(KeyOSKeySystemConfiguration widevine)Sets the Widevine KeyOS key system configuration. final KeyOSDRMConfiguration.Builderwidevine(String widevine)The license acquisition URL used for the Widevine key system. final KeyOSDRMConfigurationbuild()Builds the KeyOS DRM Configuration. -
-
Method Detail
-
customdata
final KeyOSDRMConfiguration.Builder customdata(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
final KeyOSDRMConfiguration.Builder playready(KeyOSKeySystemConfiguration playready)
Sets the PlayReady KeyOS key system configuration.
- Parameters:
playready- The PlayReady KeyOS key system configuration.
-
playready
final KeyOSDRMConfiguration.Builder playready(String playready)
The license acquisition URL used for the PlayReady key system.
- Parameters:
playready- The PlayReady license acquisition URL.
-
widevine
final KeyOSDRMConfiguration.Builder widevine(KeyOSKeySystemConfiguration widevine)
Sets the Widevine KeyOS key system configuration.
- Parameters:
widevine- The Widevine KeyOS key system configuration.
-
widevine
final KeyOSDRMConfiguration.Builder widevine(String widevine)
The license acquisition URL used for the Widevine key system.
- Parameters:
widevine- The Widevine license acquisition URL.
-
build
final KeyOSDRMConfiguration build()
Builds the KeyOS DRM Configuration.
-
-
-
-