fr.paris.lutece.plugins.mylutece.modules.oauth.service
Class OAuthService

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.oauth.service.OAuthService

public final class OAuthService
extends java.lang.Object

OAuthService


Method Summary
 void createNewAuthentication(OAuthAuthentication authentication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates a new authentication and registers it.
 java.lang.String doAuthentication(javax.servlet.http.HttpServletRequest request)
          Do the actual authentication
 OAuthAuthentication getAuthentication(java.lang.String strAuthName)
          Gets the authentication
 java.util.List<OAuthAuthentication> getListAuthentication()
          Finds the registered authentication list.
 void init()
          Inits the authentications.
 void removeAuthentication(java.lang.String strAuthenticationName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the authentication
 void updateAuthentication(OAuthAuthentication authentication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates the authentication : registers it and saves it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init()
Inits the authentications. Plugin needs to be configured (i.e. pool set)


getAuthentication

public OAuthAuthentication getAuthentication(java.lang.String strAuthName)
Gets the authentication

Parameters:
strAuthName - the auth name
Returns:
the authentication found, null otherwise.

getListAuthentication

public java.util.List<OAuthAuthentication> getListAuthentication()
Finds the registered authentication list.

Returns:
the registered authentications

createNewAuthentication

public void createNewAuthentication(OAuthAuthentication authentication,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a new authentication and registers it.

Parameters:
authentication - the authentication to create
plugin - the plugin

updateAuthentication

public void updateAuthentication(OAuthAuthentication authentication,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates the authentication : registers it and saves it.

Parameters:
authentication - the authentication
plugin - the plugin

removeAuthentication

public void removeAuthentication(java.lang.String strAuthenticationName,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the authentication

Parameters:
strAuthenticationName - the authentication name.
plugin - the plugin

doAuthentication

public java.lang.String doAuthentication(javax.servlet.http.HttpServletRequest request)
Do the actual authentication

Parameters:
request - the request with auth_provider parameter
Returns:
portal url if no error


Copyright © 2010 Mairie de Paris. All Rights Reserved.