Package org.codelibs.fess.auth
Class AuthenticationManager
java.lang.Object
org.codelibs.fess.auth.AuthenticationManager
Manages authentication operations across multiple authentication chains.
This class coordinates user operations across different authentication providers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthenticationChain[]Array of authentication chains to process user operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChain(AuthenticationChain chain) Adds an authentication chain to the manager.protected org.codelibs.core.stream.StreamUtil.StreamOf<AuthenticationChain> chains()Returns a stream of authentication chains.booleanchangePassword(String username, String password) Changes the password for a user across all authentication chains.voiddelete(org.codelibs.fess.opensearch.user.exentity.User user) Deletes a user from all authentication chains.voidinsert(org.codelibs.fess.opensearch.user.exentity.User user) Inserts a new user across all authentication chains.org.codelibs.fess.opensearch.user.exentity.Userload(org.codelibs.fess.opensearch.user.exentity.User user) Loads user information by processing through all authentication chains.
-
Field Details
-
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
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
Adds an authentication chain to the manager.- Parameters:
chain- The authentication chain to add.
-
chains
Returns a stream of authentication chains.- Returns:
- A stream wrapper of the authentication chains.
-