fr.paris.lutece.plugins.mylutece.modules.oauth.authentication
Class OAuthCredentialsRetrieverUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.oauth.authentication.OAuthCredentialsRetrieverUtils

public final class OAuthCredentialsRetrieverUtils
extends java.lang.Object

This class provides method to try to retrieve user infos.


Method Summary
static void doRetrieveUserInfo(org.apache.http.HttpResponse httpResponse, OAuthUser user, java.lang.String strFormat)
          Finds the user info from the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doRetrieveUserInfo

public static void doRetrieveUserInfo(org.apache.http.HttpResponse httpResponse,
                                      OAuthUser user,
                                      java.lang.String strFormat)
Finds the user info from the response.
Declare your parser in mylutece-oauth_context.xml like this :
 <bean id="mylutece-oauth.credRetriever-XML" class="fr.paris.lutece.plugins.mylutece.modules.oauth.authentication.XMLCredentialRetriever">
         <property name="format" value="xml" />
 </bean>
 

Parameters:
httpResponse - http response
user - the user to fill
strFormat - the format
See Also:
IOAuthCredentialsRetriever


Copyright © 2010 Mairie de Paris. All Rights Reserved.