Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service')
-rw-r--r--org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/META-INF/MANIFEST.MF8
-rw-r--r--org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/build.properties23
-rw-r--r--org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/pom.xml26
-rw-r--r--org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationInfo.java31
-rw-r--r--org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationService.java29
-rw-r--r--org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/UserInfo.java43
6 files changed, 160 insertions, 0 deletions
diff --git a/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/META-INF/MANIFEST.MF b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..1307bf15
--- /dev/null
+++ b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: org.eclipse.om2m.sdt.home.monitoring.authentication.service
+Bundle-SymbolicName: org.eclipse.om2m.sdt.home.monitoring.authentication.service
+Bundle-Version: 1.1.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ClassPath: .
+Export-Package: org.eclipse.om2m.sdt.home.monitoring.authentication.service
diff --git a/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/build.properties b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/build.properties
new file mode 100644
index 00000000..35c69df7
--- /dev/null
+++ b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/build.properties
@@ -0,0 +1,23 @@
+###############################################################################
+# Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr)
+# 7 Colonel Roche 31077 Toulouse - France
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Initial Contributors:
+# Thierry Monteil : Project manager, technical co-manager
+# Mahdi Ben Alaya : Technical co-manager
+# Samir Medjiah : Technical co-manager
+# Khalil Drira : Strategy expert
+# Guillaume Garzone : Developer
+# Franšois A´ssaoui : Developer
+#
+# New contributors :
+###############################################################################
+source.. = src/main/java/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/pom.xml b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/pom.xml
new file mode 100644
index 00000000..263efb1d
--- /dev/null
+++ b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/pom.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2014, 2016 Orange.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>org.eclipse.om2m.sdt.home.monitoring.authentication.service</artifactId>
+ <packaging>eclipse-plugin</packaging>
+ <name>Authentication service for Home Monitoring</name>
+
+ <parent>
+ <groupId>org.eclipse.om2m</groupId>
+ <artifactId>org.eclipse.om2m.sdt.home.applications</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+
+</project>
diff --git a/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationInfo.java b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationInfo.java
new file mode 100644
index 00000000..ea393127
--- /dev/null
+++ b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationInfo.java
@@ -0,0 +1,31 @@
+package org.eclipse.om2m.sdt.home.monitoring.authentication.service;
+
+public class AuthenticationInfo {
+
+ private String clientId;
+ private String accessToken;
+
+
+ public String getClientId() {
+ return clientId;
+ }
+ public void setClientId(String clientId) {
+ this.clientId = clientId;
+ }
+ public String getAccessToken() {
+ return accessToken;
+ }
+ public void setAccessToken(String accessToken) {
+ this.accessToken = accessToken;
+ }
+
+ @Override
+ public String toString() {
+ StringBuffer sb = new StringBuffer("AuthenticationInfo(");
+ sb.append("clientId:").append(clientId).append(",");
+ sb.append("accessToken:").append(accessToken);
+ sb.append(")");
+ return super.toString();
+ }
+
+}
diff --git a/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationService.java b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationService.java
new file mode 100644
index 00000000..fe2c5aa9
--- /dev/null
+++ b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/AuthenticationService.java
@@ -0,0 +1,29 @@
+package org.eclipse.om2m.sdt.home.monitoring.authentication.service;
+
+public interface AuthenticationService {
+
+ /*
+ * Return the authentication page (url)
+ */
+ public String getAuthenticationPage(String sessionId, String serverName, int serverPort);
+
+ /**
+ * Service name
+ * @return
+ */
+ public Object getServiceName();
+
+ /**
+ * authentication info
+ * @return
+ */
+ public AuthenticationInfo getAuthenticationInfo(String sessionId);
+
+ /**
+ * Retrieve end user info.
+ * @return end user info
+ */
+ public UserInfo getEndUserInfo(String sessionId);
+
+
+}
diff --git a/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/UserInfo.java b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/UserInfo.java
new file mode 100644
index 00000000..211f59a4
--- /dev/null
+++ b/org.eclipse.om2m.sdt/org.eclipse.om2m.sdt.home.applications/org.eclipse.om2m.sdt.home.applications.authentication.service/src/main/java/org/eclipse/om2m/sdt/home/monitoring/authentication/service/UserInfo.java
@@ -0,0 +1,43 @@
+package org.eclipse.om2m.sdt.home.monitoring.authentication.service;
+
+public class UserInfo {
+
+ private String userId;
+ private String firstName;
+ private String lastName;
+
+ public UserInfo(String id) {
+ this.userId = id;
+ }
+
+ public String getUserId() {
+ return userId;
+ }
+
+ public void setUserId(String clientId) {
+ this.userId = clientId;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ @Override
+ public String toString() {
+ return "<UserInfo clientId=" + userId
+ + " firstName=" + firstName + " lastName=" + lastName + "/>";
+ }
+
+}

Back to the top