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
implements SecurityToken

A SecurityToken that represents two/three legged OAuth requests


Field Summary
static String ENTITY_ID
           
 
Constructor Summary
OAuthSecurityToken(String userId, String appUrl, String appId, String domain, String container, Long expiresAt, String virtualOrganization, String serviceProviderEntityId)
           
OAuthSecurityToken(String userId, String appUrl, String appId, String domain, String container, Long expiresAt, String authMode, String virtualOrganization, String serviceProviderEntityId)
           
 
Method Summary
 String getAppId()
           
 String getAppUrl()
           
 String getAuthenticationMode()
           
 String getContainer()
           
 String getDomain()
           
 Long getExpiresAt()
           
 long getModuleId()
           
 String getOwnerId()
           
 String getServiceProviderEntityId()
           
 String getTrustedJson()
           
 String getUpdatedToken()
           
 String getViewerId()
           
 String getVirtualOrganization()
           
 boolean isAnonymous()
           
 
Methods inherited from class org.apache.shindig.auth.AbstractSecurityToken
getActiveUrl, isExpired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.shindig.auth.SecurityToken
getActiveUrl, isExpired
 

Field Detail

ENTITY_ID

public static final String ENTITY_ID
See Also:
Constant Field Values
Constructor Detail

OAuthSecurityToken

public OAuthSecurityToken(String userId,
                          String appUrl,
                          String appId,
                          String domain,
                          String container,
                          Long expiresAt,
                          String virtualOrganization,
                          String serviceProviderEntityId)

OAuthSecurityToken

public OAuthSecurityToken(String userId,
                          String appUrl,
                          String appId,
                          String domain,
                          String container,
                          Long expiresAt,
                          String authMode,
                          String virtualOrganization,
                          String serviceProviderEntityId)
Method Detail

getOwnerId

public String getOwnerId()
Specified by:
getOwnerId in interface SecurityToken

getViewerId

public String getViewerId()
Specified by:
getViewerId in interface SecurityToken

getAppId

public String getAppId()
Specified by:
getAppId in interface SecurityToken

getDomain

public String getDomain()
Specified by:
getDomain in interface SecurityToken

getContainer

public String getContainer()
Specified by:
getContainer in interface SecurityToken

getAppUrl

public String getAppUrl()
Specified by:
getAppUrl in interface SecurityToken

getExpiresAt

public Long getExpiresAt()
Specified by:
getExpiresAt in interface SecurityToken

getModuleId

public long getModuleId()
Specified by:
getModuleId in interface SecurityToken

getUpdatedToken

public String getUpdatedToken()
Specified by:
getUpdatedToken in interface SecurityToken

getAuthenticationMode

public String getAuthenticationMode()
Specified by:
getAuthenticationMode in interface SecurityToken

getTrustedJson

public String getTrustedJson()
Specified by:
getTrustedJson in interface SecurityToken

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface SecurityToken

getVirtualOrganization

public String getVirtualOrganization()
Returns:
the virtualOrganization

getServiceProviderEntityId

public String getServiceProviderEntityId()
Returns:
the serviceProviderEntityId


Copyright © 2007-2012. All Rights Reserved.