Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-07-21 16:52:20 -0400
committerRoberto E. Escobar2014-08-28 19:59:31 -0400
commitaf2a22771bbc0812250308ce30c6fbbce79d8f91 (patch)
treeac580aa73ccf59249cefcfd2f64b9c0c2286fbf9 /plugins/org.eclipse.osee.framework.jdk.core
parent24240395d954a0d82802b4747ace8f454587c0ce (diff)
downloadorg.eclipse.osee-af2a22771bbc0812250308ce30c6fbbce79d8f91.tar.gz
org.eclipse.osee-af2a22771bbc0812250308ce30c6fbbce79d8f91.tar.xz
org.eclipse.osee-af2a22771bbc0812250308ce30c6fbbce79d8f91.zip
feature[ats_ATS64256]: Integrate CXF OAuth2 with OSEE JAX-RS
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core')
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseeOAuthContext.java34
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePermission.java26
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePrincipal.java38
3 files changed, 98 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseeOAuthContext.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseeOAuthContext.java
new file mode 100644
index 0000000000..1394c6e59b
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseeOAuthContext.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Boeing.
+ * 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
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.jdk.core.type;
+
+import java.util.List;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface OseeOAuthContext {
+
+ OseePrincipal getOwner();
+
+ OseePrincipal getClient();
+
+ String getTokenGrantType();
+
+ String getClientId();
+
+ String getTokenKey();
+
+ String getTokenAudience();
+
+ List<OseePermission> getPermissions();
+
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePermission.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePermission.java
new file mode 100644
index 0000000000..edab126ccb
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePermission.java
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Boeing.
+ * 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
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.jdk.core.type;
+
+import java.util.List;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface OseePermission extends Identity<Long>, Named, HasDescription {
+
+ boolean isDefault();
+
+ List<String> getHttpVerbs();
+
+ List<String> getUris();
+
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePrincipal.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePrincipal.java
new file mode 100644
index 0000000000..3c8688eb84
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/OseePrincipal.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Boeing.
+ * 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
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.jdk.core.type;
+
+import java.security.Principal;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface OseePrincipal extends Principal, Identity<Long> {
+
+ String getLogin();
+
+ List<String> getRoles();
+
+ String getDisplayName();
+
+ String getUserName();
+
+ String getEmailAddress();
+
+ boolean isActive();
+
+ boolean isAuthenticated();
+
+ Map<String, String> getProperties();
+
+} \ No newline at end of file

Back to the top