com.brightcove.player.drm

## Class CustomerRightsToken.RentalProfile

- java.lang.Object
- - com.brightcove.player.drm.CustomerRightsToken.RentalProfile

- Enclosing class:
    CustomerRightsToken

      public static class CustomerRightsToken.RentalProfile
      extends java.lang.Object

  Rental profile must be used for requesting a license with time restrictions.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `CustomerRightsToken.RentalLicense` | `rental` The rental license details.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RentalProfile(java.util.Date absoluteExpiration, java.lang.Long playDuration)` Creates a new rental profile.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### rental

          public final CustomerRightsToken.RentalLicense rental

      The rental license details.

  - ### Constructor Detail

    - #### RentalProfile

          public RentalProfile(@NonNull
                               java.util.Date absoluteExpiration,
                               @NonNull
                               java.lang.Long playDuration)

      Creates a new rental profile.
      Parameters:
        `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.