FileDocCategorySizeDatePackage
ProcessedData.javaAPI DocAndroid 5.1 API2363Thu Mar 12 22:22:30 GMT 2015android.drm

ProcessedData

public class ProcessedData extends Object
An entity class that wraps the result of a {@link DrmManagerClient#processDrmInfo(DrmInfo) processDrmInfo()} transaction between a device and a DRM server. In a license acquisition scenario this class holds the rights information in binary form.

Fields Summary
private final byte[]
mData
private String
mAccountId
private String
mSubscriptionId
Constructors Summary
ProcessedData(byte[] data, String accountId)
Creates a ProcessedData object with the given parameters.

param
data Rights data.
param
accountId Account ID of the user.


                            
    /* package */     
        mData = data;
        mAccountId = accountId;
    
ProcessedData(byte[] data, String accountId, String subscriptionId)
Creates a ProcessedData object with the given parameters.

param
data Rights data.
param
accountId Account ID of the user.
param
subscriptionId Subscription ID of the user.

        mData = data;
        mAccountId = accountId;
        mSubscriptionId = subscriptionId;
    
Methods Summary
public java.lang.StringgetAccountId()
Retrieves the account ID associated with this object.

return
The account ID of the user.

        return mAccountId;
    
public byte[]getData()
Retrieves the processed data.

return
The rights data.

        return mData;
    
public java.lang.StringgetSubscriptionId()
Returns the subscription ID associated with this object.

return
The subscription ID of the user.

        return mSubscriptionId;