Package org.exoplatform.web.security
Class PortalLoginModule
java.lang.Object
org.exoplatform.services.security.jaas.AbstractLoginModule
org.exoplatform.web.security.PortalLoginModule
- All Implemented Interfaces:
LoginModule
public class PortalLoginModule
extends org.exoplatform.services.security.jaas.AbstractLoginModule
A login module implementation that is used to handle reauthentication of client with same HTTP session on various cluster
nodes. After login of user on cluster node is attribute "authenticatedCredentials" added to HTTP session in method
commit(). Other cluster nodes can than read these credentials in method login(), and can reuse them to
relogin.-
Field Summary
FieldsFields inherited from class org.exoplatform.services.security.jaas.AbstractLoginModule
callbackHandler, options, realmName, sharedState, subject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabort()booleancommit()protected org.exoplatform.services.log.Logprotected voidhandleCredentialsRemoving(jakarta.servlet.http.HttpServletRequest request) Remove credentials of authenticated user from AuthenticationRegistry.protected static booleanbooleanlogin()booleanlogout()Methods inherited from class org.exoplatform.services.security.jaas.AbstractLoginModule
afterInitialize, getContainer, initialize
-
Field Details
-
AUTHENTICATED_CREDENTIALS
- See Also:
-
-
Constructor Details
-
PortalLoginModule
public PortalLoginModule()
-
-
Method Details
-
login
- Throws:
LoginException- See Also:
-
commit
- Throws:
LoginException- See Also:
-
abort
- Throws:
LoginException- See Also:
-
logout
- Throws:
LoginException- See Also:
-
getLogger
protected org.exoplatform.services.log.Log getLogger()- Specified by:
getLoggerin classorg.exoplatform.services.security.jaas.AbstractLoginModule
-
isClusteredSSO
protected static boolean isClusteredSSO() -
handleCredentialsRemoving
protected void handleCredentialsRemoving(jakarta.servlet.http.HttpServletRequest request) Remove credentials of authenticated user from AuthenticationRegistry.- Parameters:
request- httpRequest
-