public class FakeGadgetToken
extends org.apache.shindig.auth.AbstractSecurityToken
| Modifier and Type | Class and Description |
|---|---|
static class |
FakeGadgetToken.Codec
SecurityTokenCodec for testing - this allows passing around a
security token of format key=value&key2=value2, where key is one of:
ownerId, viewerId, domain, appUrl, appId, trustedJson, module
|
| Constructor and Description |
|---|
FakeGadgetToken() |
FakeGadgetToken(Map<String,String> paramMap)
Create a fake security token from a map of parameter strings, keys are one of:
ownerId, viewerId, domain, appUrl, appId, trustedJson, module
|
FakeGadgetToken(String appId,
String appUrl,
String domain,
String ownerId,
String trustedJson,
String viewerId,
String moduleId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationMode() |
protected EnumSet<org.apache.shindig.auth.AbstractSecurityToken.Keys> |
getMapKeys() |
String |
getUpdatedToken() |
boolean |
isAnonymous() |
FakeGadgetToken |
setActiveUrl(String activeUrl) |
FakeGadgetToken |
setAppId(String appId) |
FakeGadgetToken |
setAppUrl(String appUrl) |
FakeGadgetToken |
setAuthenticationMode(String authMode) |
FakeGadgetToken |
setContainer(String container) |
FakeGadgetToken |
setDomain(String domain) |
FakeGadgetToken |
setExpiresAt(Long expiresAt) |
FakeGadgetToken |
setModuleId(long moduleId) |
FakeGadgetToken |
setOwnerId(String ownerId) |
FakeGadgetToken |
setTrustedJson(String trustedJson) |
FakeGadgetToken |
setUpdatedToken(String updated) |
FakeGadgetToken |
setViewerId(String viewerId) |
enforceNotExpired, getActiveUrl, getAppId, getAppUrl, getContainer, getDomain, getExpiresAt, getMaxTokenTTL, getModuleId, getOwnerId, getTimeSource, getTrustedJson, getViewerId, isExpired, loadFromMap, setExpires, setExpires, setTimeSource, toMappublic FakeGadgetToken()
public FakeGadgetToken(Map<String,String> paramMap)
paramMap - public String getAuthenticationMode()
public boolean isAnonymous()
public FakeGadgetToken setAuthenticationMode(String authMode)
public FakeGadgetToken setUpdatedToken(String updated)
public String getUpdatedToken()
protected EnumSet<org.apache.shindig.auth.AbstractSecurityToken.Keys> getMapKeys()
getMapKeys in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setAppUrl(String appUrl)
setAppUrl in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setOwnerId(String ownerId)
setOwnerId in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setViewerId(String viewerId)
setViewerId in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setAppId(String appId)
setAppId in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setDomain(String domain)
setDomain in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setContainer(String container)
setContainer in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setModuleId(long moduleId)
setModuleId in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setExpiresAt(Long expiresAt)
setExpiresAt in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setTrustedJson(String trustedJson)
setTrustedJson in class org.apache.shindig.auth.AbstractSecurityTokenpublic FakeGadgetToken setActiveUrl(String activeUrl)
setActiveUrl in class org.apache.shindig.auth.AbstractSecurityTokenCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.