Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.jaxrs.server/src/org/eclipse/osee/jaxrs/server/internal/security/oauth2/provider/adapters/AccessToken.java')
-rw-r--r--plugins/org.eclipse.osee.jaxrs.server/src/org/eclipse/osee/jaxrs/server/internal/security/oauth2/provider/adapters/AccessToken.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.jaxrs.server/src/org/eclipse/osee/jaxrs/server/internal/security/oauth2/provider/adapters/AccessToken.java b/plugins/org.eclipse.osee.jaxrs.server/src/org/eclipse/osee/jaxrs/server/internal/security/oauth2/provider/adapters/AccessToken.java
new file mode 100644
index 00000000000..128097a3f2d
--- /dev/null
+++ b/plugins/org.eclipse.osee.jaxrs.server/src/org/eclipse/osee/jaxrs/server/internal/security/oauth2/provider/adapters/AccessToken.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * 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.jaxrs.server.internal.security.oauth2.provider.adapters;
+
+import org.apache.cxf.rs.security.oauth2.common.ServerAccessToken;
+import org.eclipse.osee.jaxrs.server.security.OAuthToken;
+import org.eclipse.osee.jaxrs.server.security.OAuthTokenType;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class AccessToken extends ServerAccessToken implements OAuthToken {
+
+ private static final long serialVersionUID = 5893901939888969786L;
+
+ private final long uuid;
+ private final long clientId;
+ private final long subjectId;
+ private final OAuthTokenType type;
+
+ public AccessToken(long uuid, long clientId, long subjectId, OAuthTokenType type) {
+ super();
+ this.uuid = uuid;
+ this.clientId = clientId;
+ this.subjectId = subjectId;
+ this.type = type;
+ }
+
+ @Override
+ public long getUuid() {
+ return uuid;
+ }
+
+ @Override
+ public long getSubjectId() {
+ return subjectId;
+ }
+
+ @Override
+ public long getClientId() {
+ return clientId;
+ }
+
+ @Override
+ public OAuthTokenType getType() {
+ return type;
+ }
+
+}

Back to the top