|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.authentication.MultiLuteceAuthentication
public class MultiLuteceAuthentication
Manages serveral MyLuteceAuthentication. Call registerAuthentication(LuteceAuthentication) to register your authentication and removeAuthentication(String) to unregister
it.
| Constructor Summary | |
|---|---|
MultiLuteceAuthentication()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAccessControledTemplate()
Returns the access controled template |
java.lang.String |
getAccessDeniedTemplate()
Returns the access denied template |
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser()
|
java.lang.String |
getAuthServiceName()
|
java.lang.String |
getAuthType(javax.servlet.http.HttpServletRequest request)
|
java.lang.String |
getDoLoginUrl()
Returns the DoLogin URL of the Authentication Service. |
java.lang.String |
getDoLogoutUrl()
Returns the disconnect URL of the Authentication Service. |
fr.paris.lutece.portal.service.security.LuteceUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
Finds the http authenticated user. |
java.lang.String |
getIconUrl()
No icon directlty shown for this authentication. |
java.util.List<fr.paris.lutece.portal.service.security.LuteceAuthentication> |
getListLuteceAuthentication()
Returns all known security authentication services |
java.lang.String |
getLoginPageUrl()
Returns the Login page URL of the Authentication Service. |
java.lang.String |
getLostPasswordPageUrl()
Returns the lost password URL of the Authentication Service. |
fr.paris.lutece.portal.service.security.LuteceAuthentication |
getLuteceAuthentication(java.lang.String strKey)
Gets the authentication by its key |
java.lang.String |
getName()
Always null, not supposed to be identifiable |
java.lang.String |
getNewAccountPageUrl()
Returns the new account page URL of the Authentication Service Tries to get authentication specific new account page url form request (passed through LocalVariables ), default otherswise. |
java.lang.String |
getPluginName()
Always null, this implementation is not plugin related. |
java.lang.String[] |
getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
|
fr.paris.lutece.portal.service.security.LuteceUser |
getUser(java.lang.String strUserLogin)
Tries to get user from any authentication. |
java.util.Collection<fr.paris.lutece.portal.service.security.LuteceUser> |
getUsers()
Gets all known users from all authentications. |
java.lang.String |
getViewAccountPageUrl()
Returns the View account page URL of the Authentication Service Tries to get authentication specific view account page url form request (passed through LocalVariables ), default otherswise. |
boolean |
isDelegatedAuthentication()
|
boolean |
isExternalAuthentication()
|
boolean |
isMultiAuthenticationSupported()
|
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
java.lang.String strRole)
|
boolean |
isUsersListAvailable()
Returns false. |
fr.paris.lutece.portal.service.security.LuteceUser |
login(java.lang.String strUserName,
java.lang.String strUserPassword,
javax.servlet.http.HttpServletRequest request)
|
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
|
static void |
registerAuthentication(fr.paris.lutece.portal.service.security.LuteceAuthentication authentication)
Registers an authentication. |
static void |
removeAuthentication(java.lang.String strAuthenticationName)
Removes the authentication from managed authentication |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiLuteceAuthentication()
| Method Detail |
|---|
public static void registerAuthentication(fr.paris.lutece.portal.service.security.LuteceAuthentication authentication)
authentication - the authentication to register.public static void removeAuthentication(java.lang.String strAuthenticationName)
strAuthenticationName - the authentication keypublic java.lang.String getLoginPageUrl()
LocalVariables ), default otherswise.
getLoginPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getDoLoginUrl()
LocalVariables ), default otherswise.
getDoLoginUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getNewAccountPageUrl()
LocalVariables ), default otherswise.
getNewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getViewAccountPageUrl()
LocalVariables ), default otherswise.
getViewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getLostPasswordPageUrl()
LocalVariables ), default otherswise.
getLostPasswordPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getDoLogoutUrl()
LocalVariables ), default otherswise.
getDoLogoutUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getAccessDeniedTemplate()
getAccessDeniedTemplate in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getAccessControledTemplate()
getAccessControledTemplate in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
getAnonymousUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getAuthServiceName()
getAuthServiceName in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getAuthType(javax.servlet.http.HttpServletRequest request)
getAuthType in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationrequest - the reuqest
null otherwise.public java.lang.String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
getRolesByUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getUser(java.lang.String strUserLogin)
getUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationstrUserLogin - user login
null otherwise.public java.util.Collection<fr.paris.lutece.portal.service.security.LuteceUser> getUsers()
getUsers in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isExternalAuthentication()
isExternalAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
java.lang.String strRole)
isUserInRole in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isUsersListAvailable()
isUsersListAvailable in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
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
login in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationjavax.security.auth.login.LoginException
fr.paris.lutece.portal.service.security.LoginRedirectExceptionpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
logout in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isMultiAuthenticationSupported()
isMultiAuthenticationSupported in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceAuthentication getLuteceAuthentication(java.lang.String strKey)
strKey - the key
LuteceAuthentication found, null otherwise.public boolean isDelegatedAuthentication()
isDelegatedAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.util.List<fr.paris.lutece.portal.service.security.LuteceAuthentication> getListLuteceAuthentication()
public java.lang.String getIconUrl()
getIconUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getName()
null, not supposed to be identifiable
getName in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic java.lang.String getPluginName()
null, this implementation is not plugin related.
getPluginName in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||