Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.net.drm 
DRMVoucher 
Packageflash.net.drm
Classpublic class DRMVoucher
InheritanceDRMVoucher Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

The DRMVoucher class represents a license token that allows a user to view DRM-protected content.

The DRMVoucher properties describe the viewing rights confered by the voucher. A voucher can be obtained using the loadVoucher() method of the DRMManager object. This method, in turn, requires a DRMContentData object obtained with the preloadEmbeddedMetadata() method of the NetStream class.

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  AIR-only offlineLeaseEndDate : Date
[read-only] The date and time at which this voucher expires for offline playback.
DRMVoucher
  AIR-only offlineLeaseStartDate : Date
[read-only] The date and time at which this voucher becomes valid for offline playback.
DRMVoucher
  AIR-only playbackTimeWindow : flash.net.drm:DRMPlaybackTimeWindow
[read-only] The time period, after first view, during which the related content can be viewed or reviewed.
DRMVoucher
  AIR-only policies : Object
[read-only] A dynamic Object reporting application-defined policies.
DRMVoucher
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  AIR-only voucherEndDate : Date
[read-only] The date on which this voucher expires.
DRMVoucher
  AIR-only voucherStartDate : Date
[read-only] The beginning of this voucher's validity period.
DRMVoucher
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
AIR-only 

offlineLeaseEndDate

property
offlineLeaseEndDate:Date  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

The date and time at which this voucher expires for offline playback.

If a voucher is only valid for the current online session, offlineLeaseStartDate is null.



Implementation
    public function get offlineLeaseEndDate():Date
AIR-only 

offlineLeaseStartDate

property 
offlineLeaseStartDate:Date  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

The date and time at which this voucher becomes valid for offline playback.

If a voucher is only valid for the current online session, offlineLeaseStartDate is null.



Implementation
    public function get offlineLeaseStartDate():Date
AIR-only 

playbackTimeWindow

property 
playbackTimeWindow:flash.net.drm:DRMPlaybackTimeWindow  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

The time period, after first view, during which the related content can be viewed or reviewed.

The playback window opens when the user first views the content and closes after the allowed amount of time has elapsed. If no playback window is allowed, then playbackTimeWindow is null.



Implementation
    public function get playbackTimeWindow():flash.net.drm:DRMPlaybackTimeWindow
AIR-only 

policies

property 
policies:Object  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

A dynamic Object reporting application-defined policies.

The policy object contains a name-value pair for each policy in effect.



Implementation
    public function get policies():Object
AIR-only 

voucherEndDate

property 
voucherEndDate:Date  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

The date on which this voucher expires.



Implementation
    public function get voucherEndDate():Date
AIR-only 

voucherStartDate

property 
voucherStartDate:Date  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.5

The beginning of this voucher's validity period.



Implementation
    public function get voucherStartDate():Date