Class AuthenticationSQL

    • Field Detail

      • dataSourceJndiName

        protected String dataSourceJndiName
      • userTableName

        protected String userTableName
      • loginColumnName

        protected String loginColumnName
      • passwordColumnName

        protected String passwordColumnName
      • passwordAvailableColumnName

        protected String passwordAvailableColumnName
    • Constructor Detail

      • AuthenticationSQL

        public AuthenticationSQL()
    • Method Detail

      • loadProperties

        public void loadProperties​(org.silverpeas.kernel.bundle.SettingBundle settings)
        Description copied from class: AuthenticationProtocol
        Loads the specified properties to set the communication information with the authentication service.
        Specified by:
        loadProperties in class AuthenticationProtocol
        Parameters:
        settings - the communication settings.
      • doChangePassword

        protected void doChangePassword​(AuthenticationConnection connection,
                                        AuthenticationCredential credential,
                                        String newPassword)
                                 throws AuthenticationException
        Description copied from class: AuthenticationProtocol
        Does the password change by using the specified connection with the remote server and with with the specified user credential and new password. By default, this operation is considered as not supported by the remote authentication service and throws then an UnsupportedOperationException exception. If the authentication service supports this operation, the concrete Authentication implementation has to implement this method.
        Overrides:
        doChangePassword in class AuthenticationProtocol
        Parameters:
        connection - the connection with a remote authentication server.
        credential - the credential to use to authenticate the user.
        newPassword - the new password that will replace the one in the user credential.
        Throws:
        AuthenticationException - if an error occurs while changing the user password.
      • doResetPassword

        protected void doResetPassword​(AuthenticationConnection connection,
                                       String login,
                                       boolean loginIgnoreCase,
                                       String newPassword)
                                throws AuthenticationException
        Description copied from class: AuthenticationProtocol
        Does the password reset by using the specified connection with the remote server the user login for which the password has to be reset and a new password. By default, this operation is considered as not supported by the remote authentication service and throws then an UnsupportedOperationException exception. If the authentication service supports this operation, the concrete Authentication implementation has to implement this method.
        Overrides:
        doResetPassword in class AuthenticationProtocol
        Parameters:
        connection - the connection with a remote authentication server.
        login - the login of the user for which the password has to be reset.
        loginIgnoreCase - true to ignore case when comparing the login.
        newPassword - the new password with which the user password will be reset.
        Throws:
        AuthenticationException - if an error occurs while resetting the user password.