UserSource
- public interface UserSource
UserSources are sources for users - i.e. they authenticate users and contain basic information about users.
UserSources let you
check if a user exists -
isUserExisting(String)
authenticate a user via a password -isValid(String,String)
get the defaultUserStatus
-getDefaultUserStatus(String)
get the default email address -getDefaultUserEmail(String)
retrieve a users roles -resolveRolesForUsername(String)
The default email and defaultUserStatus
might be overridden by other settings in CaosDB - that’s why they are called “default”.Also, the user’s roles might be overridden by the internal user source
InternalUserSource
.A UserSource is configured via
setMap(Map)
.- Author:
Timm Fitschen (t.fitschen@indiscale.com)
Methods
getDefaultUserEmail
getDefaultUserStatus
- public UserStatus getDefaultUserStatus(String username)
Return the
UserStatus
of that user.- Parameters:
username –
- Returns:
The user status of that user
getName
- public String getName()
Every UserSource has a unique name, e.g. PAM, CaosDB (which is default name of the internal user source
InternalUserSource
).- Returns:
name