| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
package org.apache.shindig.social.core.oauth; |
| 19 | |
|
| 20 | |
import org.apache.shindig.auth.SecurityToken; |
| 21 | |
|
| 22 | |
public class OAuthSecurityToken implements SecurityToken { |
| 23 | |
private final String userId; |
| 24 | |
private final String appUrl; |
| 25 | |
private final String appId; |
| 26 | |
private final String domain; |
| 27 | |
|
| 28 | 0 | public OAuthSecurityToken(String userId, String appUrl, String appId, String domain) { |
| 29 | 0 | this.userId = userId; |
| 30 | 0 | this.appUrl = appUrl; |
| 31 | 0 | this.appId = appId; |
| 32 | 0 | this.domain = domain; |
| 33 | 0 | } |
| 34 | |
|
| 35 | |
public String getOwnerId() { |
| 36 | 0 | return userId; |
| 37 | |
} |
| 38 | |
|
| 39 | |
public String getViewerId() { |
| 40 | 0 | return userId; |
| 41 | |
} |
| 42 | |
|
| 43 | |
public String getAppId() { |
| 44 | 0 | return appId; |
| 45 | |
} |
| 46 | |
|
| 47 | |
public String getDomain() { |
| 48 | 0 | return domain; |
| 49 | |
} |
| 50 | |
|
| 51 | |
public String getAppUrl() { |
| 52 | 0 | return appUrl; |
| 53 | |
} |
| 54 | |
|
| 55 | |
|
| 56 | |
|
| 57 | |
public long getModuleId() { |
| 58 | 0 | throw new UnsupportedOperationException(); |
| 59 | |
} |
| 60 | |
|
| 61 | |
|
| 62 | |
public String toSerialForm() { |
| 63 | 0 | throw new UnsupportedOperationException(); |
| 64 | |
} |
| 65 | |
|
| 66 | |
public String getUpdatedToken() { |
| 67 | 0 | throw new UnsupportedOperationException(); |
| 68 | |
} |
| 69 | |
|
| 70 | |
public String getTrustedJson() { |
| 71 | 0 | throw new UnsupportedOperationException(); |
| 72 | |
} |
| 73 | |
public boolean isAnonymous() { |
| 74 | 0 | return false; |
| 75 | |
} |
| 76 | |
} |