Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / include / OCSecurityModel.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 /// @file OCSecurityModel.h 
7
8 /// @brief      This file contains the declaration of classes and its members required to provide 
9 ///                     security model support. 
10
11 #ifndef __OCSECURITYMODEL_H
12 #define __OCSECURITYMODEL_H
13
14 #include "OCApi.h"
15
16 namespace OC
17 {
18         /**
19         * @brief        This class provides the required security model to 
20         *                       access a service or a particular resource.
21         */
22         class OCSecurityModel
23         {
24         public:
25                 OCSecurityModel(void);
26
27                 virtual ~OCSecurityModel(void);
28
29                 /**
30                 * @fn   checks the security access
31                 * 
32                 * @param sourceURI - source URI 
33                 * @param destinationURI - destination URI of the resoruce to access 
34                 * @param encryptionLevel - Encryption level
35                 * @param remoteIdentity - remote identity
36                 */
37                 void checkAccess(URI sourceURI, URI destinationURI, int encryptionLevel, int remoteIdentity);
38         };
39 }
40
41 #endif //__OCSECURITYMODEL_H