The supported types of authentication are:
The AuthenticationMethod class provides string constants to use with the
If the metadata file for a piece of media content has multiple vouchers,
each with its own VoucherAccessInfo object, the user might need to decide
which voucher to authenticate to. For example, you might have
a subscription-level voucher with high privileges for viewing content,
as well as a basic-level voucher with lower privileges. To distinguish
between these two vouchers, use the descriptive string in the
For applications that are localized, you can use this property as an identifier. The application can detect the locale and localize the strings accordingly.
If authentication is to the default domain or no authentication is required,
the value of
Note: The domain returned by this property has nothing to do with network or Internet domain names. In this case, a domain is a group of content or user accounts. For example, a single server could support several domains, each with its own set of content channels and subscribers.
(AIR only) A DRMContentData object can be obtained from a NetStream instance by calling
the NetStream
When you package content with Flash Access, you have the option of saving the content's metadata as a separate file. To create a new DRMContentData object, get this metadata with a URLLoader object and pass it to the DRMContentData constructor.
Each VoucherAccessInfo object represents a policy, which contains the requirements for retrieving a voucher from the media rights server. For example, if the server requires the user to authenticate, the VoucherAccessInfo object contains the authentication method. If the server requires the computer to be registered with a Realm server, the object contains the URL to the Realm server.
The supported types of authentication are:
The AuthenticationMethod class provides string constants to use with the
If authentication is to the default domain or no authentication is required,
the value of
Note: The domain returned by this property has nothing to do with network or Internet domain names. In this case, a domain is a group of content or user accounts. For example, a single server could support several domains, each with its own set of content channels and subscribers.
The DRMVoucher properties describe the viewing rights conferred by the voucher. You can get a voucher
using the
If a voucher is only valid for the current online session,
If a voucher is only valid for the current online session,
The time period allotted for viewing begins when the user first views the content
and ends after the allotted amount of time has elapsed. If no time is allotted,
the value of the
The policy object contains a name-value pair for each policy in effect.
The
The
The
No method is provided for enumerating all the vouchers in the local cache.
Do not create an instance of the DRMManager class. Use the static
AIR profile support: This feature is supported
on all desktop operating systems and AIR for TV devices, but it is not supported on mobile devices. You can test
for support at run time using the
Note: When an attempt to load a voucher from the local voucher cache
(using the
Listen for the
You can use a saved authentication token, or a token downloaded by another means,
to establish an authenticated session with the media rights server in the future. To establish a
session using a token, call the DRMManager
Important (AIR only): The
One DRMManager instance exists for each security domain.
Like
The voucher is loaded according to the
The LoadVoucherSetting class defines string constants to use as values for the
When the voucher is successfully loaded, the DRMManager dispatches a DRM status event. Your application can
begin playback as soon as the voucher is loaded. The loaded voucher is available in the
If a voucher cannot be loaded from the media rights server, a DRM error event is dispatched. The
If a voucher cannot be obtained from the local cache and the
The application must download the required vouchers again for the user to be able to access encrypted content.
Calling this function is equivalent to calling
Authentication tokens are available from the
Setting a token overwrites any existing cached token for the server and domain.
Set the