org.apache.shindig.social.core.oauth2
Class OAuth2NormalizedRequest

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by org.apache.shindig.social.core.oauth2.OAuth2NormalizedRequest
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class OAuth2NormalizedRequest
extends java.util.HashMap<java.lang.String,java.lang.Object>

Normalizes an OAuth 2.0 request by extracting OAuth 2.0 related fields. TODO (Eric): implement scope handling.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
OAuth2NormalizedRequest(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 java.lang.String getAccessToken()
           
 java.lang.String getAuthorizationCode()
           
 java.lang.String getClientId()
           
 java.lang.String getClientSecret()
           
 OAuth2Types.GrantType getEnumeratedGrantType()
           
 OAuth2Types.ResponseType getEnumeratedResponseType()
           
 java.lang.String getGrantType()
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
           
 java.lang.String getRedirectURI()
           
 java.lang.String getResponseType()
           
 java.lang.String getScope()
           
 java.lang.String getState()
           
 java.lang.String getString(java.lang.String key)
           
 void setHttpServletRequest(javax.servlet.http.HttpServletRequest httpReq)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

OAuth2NormalizedRequest

public OAuth2NormalizedRequest(javax.servlet.http.HttpServletRequest request)
                        throws OAuth2Exception
Throws:
OAuth2Exception
Method Detail

getClientId

public java.lang.String getClientId()

getClientSecret

public java.lang.String getClientSecret()

getResponseType

public java.lang.String getResponseType()

getGrantType

public java.lang.String getGrantType()

getRedirectURI

public java.lang.String getRedirectURI()

getAccessToken

public java.lang.String getAccessToken()

getAuthorizationCode

public java.lang.String getAuthorizationCode()

getState

public java.lang.String getState()

getScope

public java.lang.String getScope()

getEnumeratedResponseType

public OAuth2Types.ResponseType getEnumeratedResponseType()
                                                   throws OAuth2Exception
Throws:
OAuth2Exception

getEnumeratedGrantType

public OAuth2Types.GrantType getEnumeratedGrantType()

getString

public java.lang.String getString(java.lang.String key)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap<java.lang.String,java.lang.Object>

setHttpServletRequest

public void setHttpServletRequest(javax.servlet.http.HttpServletRequest httpReq)

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()


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