public class CustomerRightsToken
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CustomerRightsToken.PurchaseLicense
Purchase license describes properties of license that has no time restrictions.
|
static class |
CustomerRightsToken.PurchaseProfile
Purchase must be used for requesting a license without time restrictions.
|
static class |
CustomerRightsToken.RentalLicense
The rental license describes the time restrictions to be imposed on the license.
|
static class |
CustomerRightsToken.RentalProfile
Rental profile must be used for requesting a license with time restrictions.
|
Modifier and Type | Field and Description |
---|---|
OutputProtection |
outputProtection |
com.brightcove.player.drm.CustomerRightsToken.Profile |
profile
The profile for the offline license request.
|
java.lang.Boolean |
storeLicense
License persistence can be controlled via storeLicense field in the CustomerRightsToken.
|
Constructor and Description |
---|
CustomerRightsToken(com.brightcove.player.drm.CustomerRightsToken.Profile profile,
boolean storeLicense)
Creates a new customers rights token.
|
CustomerRightsToken(com.brightcove.player.drm.CustomerRightsToken.Profile profile,
boolean storeLicense,
CustomerRightsTokenConfig config)
Creates a new customers rights token.
|
Modifier and Type | Method and Description |
---|---|
static CustomerRightsToken |
createPurchaseRightsToken()
Creates a
CustomerRightsToken for requesting a persistent license with
a purchase profile |
static CustomerRightsToken |
createPurchaseRightsToken(CustomerRightsTokenConfig config)
Creates a
CustomerRightsToken for requesting a persistent license with
a purchase profile |
static CustomerRightsToken |
createRentalRightsToken(java.util.Date absoluteExpiration,
java.lang.Long playDuration)
Creates a
CustomerRightsToken for requesting a persistent license with the
specified absolute expiration period |
static CustomerRightsToken |
createRentalRightsToken(java.util.Date absoluteExpiration,
java.lang.Long playDuration,
boolean storeLicense)
Creates a
CustomerRightsToken for requesting a license with time restrictions. |
static CustomerRightsToken |
createRentalRightsToken(java.util.Date absoluteExpiration,
java.lang.Long playDuration,
CustomerRightsTokenConfig config)
Creates a
CustomerRightsToken for requesting a persistent license with the
specified absolute expiration period |
public final com.brightcove.player.drm.CustomerRightsToken.Profile profile
public final java.lang.Boolean storeLicense
public final OutputProtection outputProtection
public CustomerRightsToken(com.brightcove.player.drm.CustomerRightsToken.Profile profile, boolean storeLicense)
profile
- the profile for the offline license request.storeLicense
- specifies whether the license is persistentpublic CustomerRightsToken(com.brightcove.player.drm.CustomerRightsToken.Profile profile, boolean storeLicense, @NonNull CustomerRightsTokenConfig config)
profile
- the profile for the offline license request.storeLicense
- specifies whether the license is persistent.config
- specifies extra and optional configuration.@NonNull public static CustomerRightsToken createRentalRightsToken(@NonNull java.util.Date absoluteExpiration, @NonNull java.lang.Long playDuration, boolean storeLicense)
CustomerRightsToken
for requesting a license with time restrictions.absoluteExpiration
- defines how long the license is valid to start playback.playDuration
- defines in milliseconds how long the content can be consumed
after the start of playback.storeLicense
- specifies whether the license is persistent@NonNull public static CustomerRightsToken createRentalRightsToken(@NonNull java.util.Date absoluteExpiration, @NonNull java.lang.Long playDuration)
CustomerRightsToken
for requesting a persistent license with the
specified absolute expiration periodabsoluteExpiration
- defines how long the license is valid to start playback.playDuration
- defines in milliseconds how long the content can be consumed
after the start of playback.@NonNull public static CustomerRightsToken createRentalRightsToken(@NonNull java.util.Date absoluteExpiration, @NonNull java.lang.Long playDuration, @NonNull CustomerRightsTokenConfig config)
CustomerRightsToken
for requesting a persistent license with the
specified absolute expiration periodabsoluteExpiration
- defines how long the license is valid to start playback.playDuration
- defines in milliseconds how long the content can be consumed
after the start of playback.config
- defines additional configuration for the CustomerRightsToken@NonNull public static CustomerRightsToken createPurchaseRightsToken()
CustomerRightsToken
for requesting a persistent license with
a purchase profile@NonNull public static CustomerRightsToken createPurchaseRightsToken(@NonNull CustomerRightsTokenConfig config)
CustomerRightsToken
for requesting a persistent license with
a purchase profileconfig
- defines additional configuration for the CustomerRightsToken