summaryrefslogtreecommitdiff
path: root/resource/include/OCSecurityModel.h
diff options
context:
space:
mode:
authorYoungman Jung <yman.jung@samsung.com>2015-03-11 18:56:00 +0900
committerYoungman Jung <yman.jung@samsung.com>2015-03-11 19:05:30 +0900
commit00b3660e45c56cb3db35dc2596a054f801b5591a (patch)
tree627be23ee7e576d0d65b36db4dfe98dfff13d652 /resource/include/OCSecurityModel.h
parent6fe7f1aeb6d61997b7ba88ca0bcacc804e285ed6 (diff)
downloadiotivity-00b3660e45c56cb3db35dc2596a054f801b5591a.tar.gz
iotivity-00b3660e45c56cb3db35dc2596a054f801b5591a.tar.bz2
iotivity-00b3660e45c56cb3db35dc2596a054f801b5591a.zip
iotivity 0.9.0upstream/0.9.0
Change-Id: I8bfbed02fe5836bfae624e8c3ae10ec360ac827d Signed-off-by: Youngman Jung <yman.jung@samsung.com>
Diffstat (limited to 'resource/include/OCSecurityModel.h')
-rw-r--r--resource/include/OCSecurityModel.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/resource/include/OCSecurityModel.h b/resource/include/OCSecurityModel.h
new file mode 100644
index 000000000..9c447aa35
--- /dev/null
+++ b/resource/include/OCSecurityModel.h
@@ -0,0 +1,56 @@
+//******************************************************************
+//
+// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
+//
+//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+/// @file OCSecurityModel.h
+
+/// @brief This file contains the declaration of classes and its members required to provide
+/// security model support.
+
+#ifndef __OCSECURITYMODEL_H
+#define __OCSECURITYMODEL_H
+
+#include "OCApi.h"
+
+namespace OC
+{
+ /**
+ * @brief This class provides the required security model to
+ * access a service or a particular resource.
+ */
+ class OCSecurityModel
+ {
+ public:
+ OCSecurityModel(void);
+
+ virtual ~OCSecurityModel(void);
+
+ /**
+ * @fn checks the security access
+ *
+ * @param sourceURI - source URI
+ * @param destinationURI - destination URI of the resoruce to access
+ * @param encryptionLevel - Encryption level
+ * @param remoteIdentity - remote identity
+ */
+ void checkAccess(URI sourceURI, URI destinationURI, int encryptionLevel, int remoteIdentity);
+ };
+}
+
+#endif //__OCSECURITYMODEL_H