fr.paris.lutece.plugins.mylutece.modules.persona.authentication
Class PersonaAuthentication

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
      extended by fr.paris.lutece.plugins.mylutece.modules.persona.authentication.PersonaAuthentication
All Implemented Interfaces:
fr.paris.lutece.portal.service.security.LuteceAuthentication

public class PersonaAuthentication
extends fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication

The Class provides an implementation of the inherited abstract class PortalAuthentication based on OpenID


Constructor Summary
PersonaAuthentication()
           
 
Method Summary
 fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
          This method returns an anonymous Lutece user
 String getAuthServiceName()
          Gets the Authentification service name
 String getAuthType(javax.servlet.http.HttpServletRequest request)
          Gets the Authentification type
 String getIconUrl()
          
 String getName()
          
 String getPluginName()
          
 boolean isMultiAuthenticationSupported()
          
 boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request, String strRole)
          Checks that the current user is associated to a given role
 fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName, String strUserPassword, javax.servlet.http.HttpServletRequest request)
          This methods checks the login info in the LDAP repository
 void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
          This methods logout the user
 
Methods inherited from class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getHttpAuthenticatedUser, getLoginPageUrl, getLostLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, getResetPasswordPageUrl, getRolesByUser, getUser, getUsers, getViewAccountPageUrl, isDelegatedAuthentication, isExternalAuthentication, isUsersListAvailable, toString, updateDateLastLogin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonaAuthentication

public PersonaAuthentication()
Method Detail

getAuthServiceName

public String getAuthServiceName()
Gets the Authentification service name

Returns:
The name of the authentication service

getAuthType

public String getAuthType(javax.servlet.http.HttpServletRequest request)
Gets the Authentification type

Parameters:
request - The HTTP request
Returns:
The type of authentication

login

public fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName,
                                                                String strUserPassword,
                                                                javax.servlet.http.HttpServletRequest request)
                                                         throws LoginException,
                                                                fr.paris.lutece.portal.service.security.LoginRedirectException
This methods checks the login info in the LDAP repository

Parameters:
strUserName - The username
strUserPassword - The password
request - The HttpServletRequest
Returns:
A LuteceUser object corresponding to the login
Throws:
fr.paris.lutece.portal.service.security.LoginRedirectException - This exception is used to redirect the authentication to the provider
LoginException - The LoginException

logout

public void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
This methods logout the user

Parameters:
user - The user

getAnonymousUser

public fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
This method returns an anonymous Lutece user

Returns:
An anonymous Lutece user

isUserInRole

public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
                            javax.servlet.http.HttpServletRequest request,
                            String strRole)
Checks that the current user is associated to a given role

Parameters:
user - The user
request - The HTTP request
strRole - The role name
Returns:
Returns true if the user is associated to the role, otherwise false

getIconUrl

public String getIconUrl()

Specified by:
getIconUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
Overrides:
getIconUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication

getName

public String getName()


getPluginName

public String getPluginName()


isMultiAuthenticationSupported

public boolean isMultiAuthenticationSupported()

Specified by:
isMultiAuthenticationSupported in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
Overrides:
isMultiAuthenticationSupported in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication


Copyright © 2013 Mairie de Paris. All Rights Reserved.