org.apache.shindig.social.core.oauth2
Class OAuth2NormalizedRequest
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
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 classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| 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 |
OAuth2NormalizedRequest
public OAuth2NormalizedRequest(javax.servlet.http.HttpServletRequest request)
throws OAuth2Exception
- Throws:
OAuth2Exception
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.