fr.paris.lutece.plugins.mylutece.modules.saml.authentication
Class SAMLAuthentication

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

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


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

Constructor Detail

SAMLAuthentication

public SAMLAuthentication()
Method Detail

getAnonymousUser

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

Returns:
A LuteceUser object corresponding to an anonymous user

getAuthServiceName

public java.lang.String getAuthServiceName()
Gets the Authentification service name

Returns:
The name of the authentication service

getAuthType

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

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

isUserInRole

public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
                            javax.servlet.http.HttpServletRequest request,
                            java.lang.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

login

public fr.paris.lutece.portal.service.security.LuteceUser login(java.lang.String strUserName,
                                                                java.lang.String strUserPassword,
                                                                javax.servlet.http.HttpServletRequest request)
                                                         throws javax.security.auth.login.LoginException,
                                                                fr.paris.lutece.portal.service.security.LoginRedirectException
Checks the login

Parameters:
strUserName - The username
strUserPassword - The user's passord
request - The HttpServletRequest
Returns:
A LuteceUser object corresponding to the login
Throws:
javax.security.auth.login.LoginException - If a Login error occured
fr.paris.lutece.portal.service.security.LoginRedirectException - If the the login process should be redirected

logout

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

Parameters:
user - The user

getRolesByUser

public java.lang.String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
Specified by:
getRolesByUser in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
Overrides:
getRolesByUser in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication

getName

public java.lang.String getName()


getPluginName

public java.lang.String getPluginName()



Copyright © 2010 Mairie de Paris. All Rights Reserved.