Class DRMTodayConfiguration.Builder
-
- All Implemented Interfaces:
public class DRMTodayConfiguration.Builder
The builder for the DRM Today configuration.
-
-
Constructor Summary
Constructors Constructor Description DRMTodayConfiguration.Builder(String licenseAcquisitionUrl)
Creates a builder for the DRM Today configuration. DRMTodayConfiguration.Builder(KeySystemConfiguration widevine)
Creates a builder for the DRM Today configuration.
-
Method Summary
Modifier and Type Method Description DRMTodayConfiguration.Builder
token(@NonNull() String token)
Sets the DRM Today authorization token. DRMTodayConfiguration.Builder
userId(@NonNull() String userId)
Sets the identifier of the user. DRMTodayConfiguration.Builder
sessionId(@NonNull() String sessionId)
Sets the identifier of the session. DRMTodayConfiguration.Builder
merchant(@NonNull() String merchant)
Sets the identifier of the merchant. DRMTodayConfiguration
build()
Builds the DRM Today configuration. -
-
Constructor Detail
-
DRMTodayConfiguration.Builder
DRMTodayConfiguration.Builder(String licenseAcquisitionUrl)
Creates a builder for the DRM Today configuration.- Parameters:
licenseAcquisitionUrl
- The license acquisition URL used for the Widevine key system.
-
DRMTodayConfiguration.Builder
DRMTodayConfiguration.Builder(KeySystemConfiguration widevine)
Creates a builder for the DRM Today configuration.- Parameters:
widevine
- The configuration of the Widevine key system.
-
-
Method Detail
-
token
@NonNull() DRMTodayConfiguration.Builder token(@NonNull() String token)
Sets the DRM Today authorization token.
- Parameters:
token
- The authorization token.
-
userId
@NonNull() DRMTodayConfiguration.Builder userId(@NonNull() String userId)
Sets the identifier of the user.
- Parameters:
userId
- The user identifier.
-
sessionId
@NonNull() DRMTodayConfiguration.Builder sessionId(@NonNull() String sessionId)
Sets the identifier of the session.
- Parameters:
sessionId
- The session identifier.
-
merchant
@NonNull() DRMTodayConfiguration.Builder merchant(@NonNull() String merchant)
Sets the identifier of the merchant.
- Parameters:
merchant
- The merchant identifier.
-
build
@NonNull() DRMTodayConfiguration build()
Builds the DRM Today configuration.
-
-
-
-