61be515da25d57bfb3cb95895cc04bd3de857c21
[framework/security/security-server.git] / src / services / ocsp / ocsp_server_api.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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  * @file        ocsp_server_api.h
18  * @author
19  * @version     1.0
20  * @brief       This file contains definitions OCSP server interface & methods.
21  */
22 #ifndef WRT_SRC_RPC_SECURITY_DAEMON_OCSP_SERVER_API_H_
23 #define WRT_SRC_RPC_SECURITY_DAEMON_OCSP_SERVER_API_H_
24
25 #include "ocsp_server_api.h"
26 #include<string>
27
28 namespace WrtSecurity{
29 namespace OcspServerApi{
30
31 // DBus interface name
32 inline const std::string INTERFACE_NAME()
33 {
34     return "org.tizen.OcspCheck";
35 }
36
37 // Function checks WidgetStatus for installed widget.
38 // https://106.116.37.24/wiki/WebRuntime/Security/Widget_Signatures
39 // IN WidgetHandle Widget ID in Database
40 // OUT WidgetStatus GOOD/REVOKED
41 inline const std::string CHECK_ACCESS_METHOD()
42 {
43     return "OcspCheck";
44 }
45
46 }
47 };
48
49 #endif // WRT_SRC_RPC_SECURITY_DAEMON_OCSP_SERVER_API_H_