Interface IdentifiableUsersManager
- All Known Subinterfaces:
RoleUsersManager
- All Known Implementing Classes:
DatabaseUsers,MemoryUsers
public interface IdentifiableUsersManager
This interface defines the methods that are needed for the
Identified
element to be able to set up a RoleUserIdentity instance for each authenticated user for whom the
Identified element is executed.- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(String login) Retrieves the attributes of a particular user according to its unique login.getLogin(long userId) Retrieves the login of a particular user according to its unique ID.
-
Method Details
-
getAttributes
Retrieves the attributes of a particular user according to its unique login.- Parameters:
login- the login of the user whose attributes need to be retrieved- Returns:
- the requested user attributes; or
nullif the user couldn't be found - Throws:
CredentialsManagerException- when na unexpected error occurred during the retrieval of the user attributes- Since:
- 1.0
-
getLogin
Retrieves the login of a particular user according to its unique ID.- Parameters:
userId- the ID of the user whose login will be retrieved- Returns:
- the requested user login; or
nullif the user couldn't be found - Throws:
CredentialsManagerException- when an unexpected error occurred during the retrieval of the user login- Since:
- 1.0
-