Class 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 only SimpleCredentials 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 Detail

      • SilverpeasSimpleJCRLoginModule

        public SilverpeasSimpleJCRLoginModule()
    • Method Detail

      • getSupportedCredentials

        @Nonnull
        protected Set<Class> getSupportedCredentials()
        Specified by:
        getSupportedCredentials in class org.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 class SilverpeasJCRLoginModule
        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.