Class AuthenticationManager

java.lang.Object
org.codelibs.fess.auth.AuthenticationManager

public class AuthenticationManager extends Object
Manages authentication operations across multiple authentication chains. This class coordinates user operations across different authentication providers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Array of authentication chains to process user operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for AuthenticationManager.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds an authentication chain to the manager.
    protected org.codelibs.core.stream.StreamUtil.StreamOf<AuthenticationChain>
    Returns a stream of authentication chains.
    boolean
    changePassword(String username, String password)
    Changes the password for a user across all authentication chains.
    void
    delete(org.codelibs.fess.opensearch.user.exentity.User user)
    Deletes a user from all authentication chains.
    void
    insert(org.codelibs.fess.opensearch.user.exentity.User user)
    Inserts a new user across all authentication chains.
    org.codelibs.fess.opensearch.user.exentity.User
    load(org.codelibs.fess.opensearch.user.exentity.User user)
    Loads user information by processing through all authentication chains.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • chains

      protected AuthenticationChain[] chains
      Array of authentication chains to process user operations.
  • Constructor Details

    • AuthenticationManager

      public AuthenticationManager()
      Default constructor for AuthenticationManager.
  • Method Details

    • insert

      public void insert(org.codelibs.fess.opensearch.user.exentity.User user)
      Inserts a new user across all authentication chains.
      Parameters:
      user - The user to insert.
    • changePassword

      public boolean changePassword(String username, String password)
      Changes the password for a user across all authentication chains.
      Parameters:
      username - The username for which to change the password.
      password - The new password.
      Returns:
      True if the password was successfully changed in all chains, false otherwise.
    • delete

      public void delete(org.codelibs.fess.opensearch.user.exentity.User user)
      Deletes a user from all authentication chains.
      Parameters:
      user - The user to delete.
    • load

      public org.codelibs.fess.opensearch.user.exentity.User load(org.codelibs.fess.opensearch.user.exentity.User user)
      Loads user information by processing through all authentication chains.
      Parameters:
      user - The user template containing search criteria.
      Returns:
      The loaded and enriched user information.
    • addChain

      public void addChain(AuthenticationChain chain)
      Adds an authentication chain to the manager.
      Parameters:
      chain - The authentication chain to add.
    • chains

      protected org.codelibs.core.stream.StreamUtil.StreamOf<AuthenticationChain> chains()
      Returns a stream of authentication chains.
      Returns:
      A stream wrapper of the authentication chains.