Apply tizen 2.4 smartcard-service
[platform/core/connectivity/smartcard-service.git] / common / include / GPARFACL.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 GPARFACL_H_
18 #define GPARFACL_H_
19
20 /* standard library header */
21
22 /* SLP library header */
23
24 /* local header */
25 #include "smartcard-types.h"
26 #ifdef __cplusplus
27 #include "AccessControlList.h"
28 #include "PKCS15.h"
29 #endif /* __cplusplus */
30
31 #ifdef __cplusplus
32 namespace smartcard_service_api
33 {
34         class GPARFACL : public AccessControlList
35         {
36         private:
37                 ByteArray refreshTag;
38
39                 int loadAccessControl(Channel *channel, PKCS15DODF *dodf);
40                 int loadRules(Channel *channel, const ByteArray &path);
41                 int loadAccessConditions(Channel *channel, const ByteArray &aid, const ByteArray &path);
42
43         public:
44                 GPARFACL();
45                 ~GPARFACL();
46
47                 int loadACL(Channel *channel);
48         };
49
50 } /* namespace smartcard_service_api */
51 #endif /* __cplusplus */
52 #endif /* GPARFACL_H_ */