Author: scottbw
Date: Sun Feb 9 20:43:13 2014
New Revision: 1566399
URL: http://svn.apache.org/r1566399
Log:
Removed the IWidgetInstance scaffold for AuthToken
Modified:
wookie/trunk/wookie-server/src/main/java/org/apache/wookie/auth/AuthToken.java
Modified:
wookie/trunk/wookie-server/src/main/java/org/apache/wookie/auth/AuthToken.java
URL:
http://svn.apache.org/viewvc/wookie/trunk/wookie-server/src/main/java/org/apache/wookie/auth/AuthToken.java?rev=1566399&r1=1566398&r2=1566399&view=diff
==============================================================================
---
wookie/trunk/wookie-server/src/main/java/org/apache/wookie/auth/AuthToken.java
(original)
+++
wookie/trunk/wookie-server/src/main/java/org/apache/wookie/auth/AuthToken.java
Sun Feb 9 20:43:13 2014
@@ -17,9 +17,7 @@
package org.apache.wookie.auth;
-import org.apache.wookie.beans.IWidgetInstance;
import org.apache.wookie.server.security.ApiKey;
-import org.apache.wookie.server.security.ApiKeys;
/**
* An AuthToken used to pass contextual information about an instance of a
@@ -43,24 +41,6 @@ public class AuthToken {
public AuthToken(){
}
-
- /**
- * Utility method for instantiating an authToken from a widget instance
- * Used for transition to new SPI model; marked as deprecated so we
know to remove it
- * @param widgetInstance
- */
- @Deprecated
- public AuthToken(IWidgetInstance widgetInstance){
- for (ApiKey apiKey : ApiKeys.getInstance().getKeys()){
- if
(apiKey.getValue().equals(widgetInstance.getApiKey())){
- this.apiKey = apiKey;
- }
- }
- this.viewerId = widgetInstance.getUserId();
- this.widgetId = widgetInstance.getWidget().getIdentifier();
- this.contextId = widgetInstance.getSharedDataKey();
- this.lang = widgetInstance.getLang();
- }
/**
* @return The time in seconds since epoc that this token expires or