Package org.silverpeas.core.jcr.security
Class SilverpeasSimpleJCRLoginModule
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
-
- org.silverpeas.core.jcr.security.SilverpeasJCRLoginModule
-
- org.silverpeas.core.jcr.security.SilverpeasSimpleJCRLoginModule
-
- All Implemented Interfaces:
LoginModule
public class SilverpeasSimpleJCRLoginModule extends SilverpeasJCRLoginModule
A login module to authenticate the users who access the JCR repository used by Silverpeas. This login module accepts onlySimpleCredentials
in which are set both the user connection identifier and the associated password.The login module delegates the authentication itself to an authentication service in Silverpeas that has the knowledge of how to perform the authentication on behalf of Silverpeas.
- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description SilverpeasSimpleJCRLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected User
authenticateUser(javax.jcr.Credentials credentials)
Authenticates the user behind the specified credentials.protected Set<Class>
getSupportedCredentials()
-
Methods inherited from class org.silverpeas.core.jcr.security.SilverpeasJCRLoginModule
clearState, commit, getAccessContext, getAllCredentials, getAllPrincipals, initialize, isInitialized, login, logout
-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
abort, closeSystemSession, getCredentials, getLoginModuleMonitor, getPrincipalProvider, getPrincipals, getPrincipals, getRoot, getSecurityProvider, getSharedCredentials, getSharedLoginName, getSharedPreAuthLogin, getUserManager, getWhiteboard, logout, onError, setAuthInfo
-
-
-
-
Method Detail
-
getSupportedCredentials
@Nonnull protected Set<Class> getSupportedCredentials()
- Specified by:
getSupportedCredentials
in classorg.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
-
authenticateUser
protected User authenticateUser(javax.jcr.Credentials credentials) throws LoginException
Description copied from class:SilverpeasJCRLoginModule
Authenticates the user behind the specified credentials.- Specified by:
authenticateUser
in classSilverpeasJCRLoginModule
- Parameters:
credentials
- the credentials of a user in Silverpeas.- Returns:
- the user identified by the given credentials if and only if the authentication succeeds.
- Throws:
LoginException
- if the authentication of the user fails.
-
-