• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2007 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 <rights/Asset.h>
18 
19 /** see Asset.h */
Asset()20 Asset::Asset()
21 {}
22 
23 /** see Asset.h */
~Asset()24 Asset::~Asset()
25 {}
26 
27 /** see Asset.h */
hasParent()28 bool Asset::hasParent()
29 {
30     return false;
31 }
32 
33 /** see Asset.h */
setID(const string & id)34 void Asset::setID(const string &id)
35 {
36     mAssetID = id;
37 }
38 
39 /** see Asset.h */
getID() const40 const string& Asset::getID() const
41 {
42     return mAssetID;
43 }
44 
45 /** see Asset.h */
setContentID(const string & id)46 void Asset::setContentID(const string &id)
47 {
48     mContentID = id;
49 }
50 
51 /** see Asset.h */
getContentID() const52 const string& Asset::getContentID() const
53 {
54     return mContentID;
55 }
56 
57 /** see Asset.h */
setEncryptedKey(const string & key)58 void Asset::setEncryptedKey(const string &key)
59 {
60     mEncryptedKey = key;
61 }
62 
63 /** see Asset.h */
setDCFDigest(const string & value)64 void Asset::setDCFDigest(const string &value)
65 {
66     mDigestValue = value;
67 }
68 
69 /** see Asset.h */
getDCFDigest() const70 const string& Asset::getDCFDigest() const
71 {
72     return mDigestValue;
73 }
74 
75 /** see Asset.h */
setKeyRetrievalMethod(const string & rm)76 void Asset::setKeyRetrievalMethod(const string &rm)
77 {
78     mRetrievalMethod = rm;
79 }
80 
81 /** see Asset.h */
setParentContentID(const string & id)82 void Asset::setParentContentID(const string &id)
83 {
84     mParentContentID = id;
85 }
86 
87 /** see Asset.h */
getEncrytedKey() const88 const string& Asset::getEncrytedKey() const
89 {
90     return mEncryptedKey;
91 }
92 
93 /** see Asset.h */
getCek() const94 const char* Asset::getCek() const
95 {
96     return NULL;
97 }
98 
99 /** see Asset.h */
recoverCek()100 void Asset::recoverCek()
101 {
102 //fix later.
103 
104 }
105 
106 /** see Asset.h */
getParentContentID() const107 const string& Asset::getParentContentID() const
108 {
109     return mParentContentID;
110 }
111