revise exported headers and cleanup headers
[platform/core/connectivity/smartcard-service.git] / common / include / PKCS15ODF.h
1 /*
2  * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
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 #ifndef PKCS15ODF_H_
18 #define PKCS15ODF_H_
19
20 #include <map>
21
22 #include "FileObject.h"
23 #include "PKCS15DODF.h"
24
25 using namespace std;
26
27 namespace smartcard_service_api
28 {
29         class PKCS15ODF : public PKCS15Object
30         {
31         private:
32                 bool parseData(const ByteArray &data);
33                 PKCS15DODF *dodf;
34
35         public:
36                 static const unsigned int ODF_FID = 0x3150;
37
38                 static const unsigned int TAG_DODF = (unsigned int)0xA7;
39                 static const unsigned int TAG_TOKENINFO = (unsigned int)0xA5;
40
41 //              PKCS15ODF();
42                 PKCS15ODF(Channel *channel);
43                 PKCS15ODF(Channel *channel, const ByteArray &selectResponse);
44                 ~PKCS15ODF();
45
46                 int getPuKDFPath(ByteArray &path);
47                 int getPrKDFPath(ByteArray &path);
48                 int getAODFPath(ByteArray &path);
49                 int getCDFFPath(ByteArray &path);
50                 int getDODFPath(ByteArray &path);
51
52                 PKCS15DODF *getDODF();
53         };
54
55 } /* namespace smartcard_service_api */
56 #endif /* PKCS15ODF_H_ */