org.apache.shindig.social.core.oauth
Class OAuthSecurityToken

java.lang.Object
  extended by org.apache.shindig.auth.AbstractSecurityToken
      extended by org.apache.shindig.social.core.oauth.OAuthSecurityToken
All Implemented Interfaces:
SecurityToken

public class OAuthSecurityToken
extends AbstractSecurityToken

A SecurityToken that represents two/three legged OAuth requests


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.shindig.auth.AbstractSecurityToken
AbstractSecurityToken.Keys
 
Field Summary
 
Fields inherited from class org.apache.shindig.auth.AbstractSecurityToken
MAX_TOKEN_TTL
 
Constructor Summary
OAuthSecurityToken(java.lang.String userId, java.lang.String appUrl, java.lang.String appId, java.lang.String domain, java.lang.String container, java.lang.Long expiresAt)
           
OAuthSecurityToken(java.lang.String userId, java.lang.String appUrl, java.lang.String appId, java.lang.String domain, java.lang.String container, java.lang.Long expiresAt, java.lang.String authMode)
           
 
Method Summary
 java.lang.String getAuthenticationMode()
           
protected  java.util.EnumSet<AbstractSecurityToken.Keys> getMapKeys()
           
 long getModuleId()
           
 java.lang.String getTrustedJson()
           
 java.lang.String getUpdatedToken()
           
 boolean isAnonymous()
           
 
Methods inherited from class org.apache.shindig.auth.AbstractSecurityToken
enforceNotExpired, getActiveUrl, getAppId, getAppUrl, getContainer, getDomain, getExpiresAt, getMaxTokenTTL, getOwnerId, getTimeSource, getViewerId, isExpired, loadFromMap, setActiveUrl, setAppId, setAppUrl, setContainer, setDomain, setExpires, setExpiresAt, setModuleId, setOwnerId, setTimeSource, setTrustedJson, setViewerId, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthSecurityToken

public OAuthSecurityToken(java.lang.String userId,
                          java.lang.String appUrl,
                          java.lang.String appId,
                          java.lang.String domain,
                          java.lang.String container,
                          java.lang.Long expiresAt)

OAuthSecurityToken

public OAuthSecurityToken(java.lang.String userId,
                          java.lang.String appUrl,
                          java.lang.String appId,
                          java.lang.String domain,
                          java.lang.String container,
                          java.lang.Long expiresAt,
                          java.lang.String authMode)
Method Detail

getModuleId

public long getModuleId()
Specified by:
getModuleId in interface SecurityToken
Overrides:
getModuleId in class AbstractSecurityToken

getUpdatedToken

public java.lang.String getUpdatedToken()

getAuthenticationMode

public java.lang.String getAuthenticationMode()

getTrustedJson

public java.lang.String getTrustedJson()
Specified by:
getTrustedJson in interface SecurityToken
Overrides:
getTrustedJson in class AbstractSecurityToken

isAnonymous

public boolean isAnonymous()

getMapKeys

protected java.util.EnumSet<AbstractSecurityToken.Keys> getMapKeys()
Specified by:
getMapKeys in class AbstractSecurityToken


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.