Class 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.
    • Constructor Summary

      Constructors 
      Constructor 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
    • 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.