Class CustomerRightsToken.RentalLicense

  • Enclosing class:
    CustomerRightsToken

    public static class CustomerRightsToken.RentalLicense
    extends java.lang.Object
    The rental license describes the time restrictions to be imposed on the license.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Date absoluteExpiration
      Defines how long the license is valid to start playback.
      java.lang.Long playDuration
      Defines in milliseconds how long the content can be consumed after the start of playback.
    • Constructor Summary

      Constructors 
      Constructor Description
      RentalLicense​(java.util.Date absoluteExpiration, java.lang.Long playDuration)
      Creates a new rental license.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • absoluteExpiration

        public final java.util.Date absoluteExpiration
        Defines how long the license is valid to start playback.
      • playDuration

        public final java.lang.Long playDuration
        Defines in milliseconds how long the content can be consumed after the start of playback.
    • Constructor Detail

      • RentalLicense

        public RentalLicense​(@NonNull
                             java.util.Date absoluteExpiration,
                             @Nullable
                             java.lang.Long playDuration)
        Creates a new rental license.
        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.