/*
 * Copyright (C) 2010 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.drm;

An entity class that wraps the result of a processDrmInfo() transaction between a device and a DRM server. In a license acquisition scenario this class holds the rights information in binary form.
/** * 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. * */
public class ProcessedData { private final byte[] mData; private String mAccountId = "_NO_USER"; private String mSubscriptionId = "";
Creates a ProcessedData object with the given parameters.
Params:
  • data – Rights data.
  • accountId – Account ID of the user.
/** * Creates a <code>ProcessedData</code> object with the given parameters. * * @param data Rights data. * @param accountId Account ID of the user. */
/* package */ ProcessedData(byte[] data, String accountId) { mData = data; mAccountId = accountId; }
Creates a ProcessedData object with the given parameters.
Params:
  • data – Rights data.
  • accountId – Account ID of the user.
  • subscriptionId – Subscription ID of the user.
/** * Creates a <code>ProcessedData</code> object with the given parameters. * * @param data Rights data. * @param accountId Account ID of the user. * @param subscriptionId Subscription ID of the user. */
/* package */ ProcessedData(byte[] data, String accountId, String subscriptionId) { mData = data; mAccountId = accountId; mSubscriptionId = subscriptionId; }
Retrieves the processed data.
Returns:The rights data.
/** * Retrieves the processed data. * * @return The rights data. */
public byte[] getData() { return mData; }
Retrieves the account ID associated with this object.
Returns:The account ID of the user.
/** * Retrieves the account ID associated with this object. * * @return The account ID of the user. */
public String getAccountId() { return mAccountId; }
Returns the subscription ID associated with this object.
Returns:The subscription ID of the user.
/** * Returns the subscription ID associated with this object. * * @return The subscription ID of the user. */
public String getSubscriptionId() { return mSubscriptionId; } }