CustomerRightsToken

An immutable transfer object that can be set the absolute expiration and play duration when requesting an offline playback license.

Constructors

Link copied to clipboard
constructor(profile: CustomerRightsToken.Profile, storeLicense: Boolean)
Creates a new customers rights token.
constructor(profile: CustomerRightsToken.Profile, storeLicense: Boolean, config: CustomerRightsTokenConfig)
Creates a new customers rights token.

Types

Link copied to clipboard
open class PurchaseLicense
Purchase license describes properties of license that has no time restrictions.
Link copied to clipboard
open class PurchaseProfile : CustomerRightsToken.Profile
Purchase must be used for requesting a license without time restrictions.
Link copied to clipboard
open class RentalLicense
The rental license describes the time restrictions to be imposed on the license.
Link copied to clipboard
open class RentalProfile : CustomerRightsToken.Profile
Rental profile must be used for requesting a license with time restrictions.

Properties

Link copied to clipboard
Link copied to clipboard
val profile: CustomerRightsToken.Profile
The profile for the offline license request.
Link copied to clipboard
License persistence can be controlled via storeLicense field in the CustomerRightsToken.

Functions

Link copied to clipboard
Creates a CustomerRightsToken for requesting a persistent license with a purchase profile
Link copied to clipboard
open fun createRentalRightsToken(absoluteExpiration: Date, playDuration: Long): CustomerRightsToken
open fun createRentalRightsToken(absoluteExpiration: Date, playDuration: Long, config: CustomerRightsTokenConfig): CustomerRightsToken
Creates a CustomerRightsToken for requesting a persistent license with the specified absolute expiration period
open fun createRentalRightsToken(absoluteExpiration: Date, playDuration: Long, storeLicense: Boolean): CustomerRightsToken
Creates a CustomerRightsToken for requesting a license with time restrictions.