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
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
Purchase license describes properties of license that has no time restrictions.
Link copied to clipboard
Purchase must be used for requesting a license without time restrictions.
Link copied to clipboard
The rental license describes the time restrictions to be imposed on the license.
Link copied to clipboard
Rental profile must be used for requesting a license with time restrictions.
Properties
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, 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.