blob: dc1e6c519c29a03e85349a37da6200fb8cd39c33 [file] [log] [blame]
aimitakeshid074e302010-07-29 10:12:27 +09001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <drm/DrmRights.h>
18
19using namespace android;
20
21DrmRights::DrmRights(const String8& rightsFilePath, const String8& mimeType,
22 const String8& accountId, const String8& subscriptionId) {
23 /**
24 * TODO Read DrmRights from rights file
25 */
26}
27
28DrmRights::DrmRights(const DrmBuffer& rightsData, const String8& mimeType,
29 const String8& accountId, const String8& subscriptionId) :
30 mData(rightsData),
31 mMimeType(mimeType),
32 mAccountId(accountId),
33 mSubscriptionId(subscriptionId) {
34}
35
36const DrmBuffer& DrmRights::getData(void) const {
37 return mData;
38}
39
40String8 DrmRights::getMimeType(void) const {
41 return mMimeType;
42}
43
44String8 DrmRights::getAccountId(void) const {
45 return mAccountId;
46}
47
48String8 DrmRights::getSubscriptionId(void) const {
49 return mSubscriptionId;
50}
51