java.lang.Object | |
↳ | android.drm.DrmRights |
An entity class that wraps the license information retrieved from the online DRM server.
A caller can instantiate a DrmRights
object by first invoking the
processDrmInfo(DrmInfo)
method and then using the resulting
ProcessedData
object to invoke the DrmRights(ProcessedData, String)
constructor.
A caller can also instantiate a DrmRights
object by using the
DrmRights(String, String)
constructor, which takes a path to a file
containing rights information instead of a ProcessedData
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
DrmRights object with the given parameters. | |||||||||||
Creates a
DrmRights object with the given parameters. | |||||||||||
Creates a
DrmRights object with the given parameters. | |||||||||||
Creates a
DrmRights object with the given parameters. | |||||||||||
Creates a
DrmRights object with the given parameters. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the account ID associated with this
DrmRights object. | |||||||||||
Retrieves the rights data associated with this
DrmRights object. | |||||||||||
Retrieves the MIME type associated with this
DrmRights object. | |||||||||||
Retrieves the subscription ID associated with this
DrmRights object. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a DrmRights
object with the given parameters.
rightsFilePath | Path to the file containing rights information. |
---|---|
mimeType | MIME type. |
Creates a DrmRights
object with the given parameters.
rightsFilePath | Path to the file containing rights information. |
---|---|
mimeType | MIME type. |
accountId | Account ID of the user. |
Creates a DrmRights
object with the given parameters.
rightsFilePath | Path to the file containing rights information. |
---|---|
mimeType | MIME type. |
accountId | Account ID of the user. |
subscriptionId | Subscription ID of the user. |
Creates a DrmRights
object with the given parameters.
rightsFile | File containing rights information. |
---|---|
mimeType | MIME type. |
Creates a DrmRights
object with the given parameters.
data | A ProcessedData object containing rights information.
data could be null because it's optional for some DRM schemes. |
---|---|
mimeType | The MIME type. |
Retrieves the account ID associated with this DrmRights
object.
Retrieves the rights data associated with this DrmRights
object.
byte
array representing the rights data.
Retrieves the MIME type associated with this DrmRights
object.
Retrieves the subscription ID associated with this DrmRights
object.