Package org.gbif.api.service.common
Interface IdentityAccessService
-
public interface IdentityAccessService
Identity service accessing a single user, in read-only. This is a replacement of the deprecatedUserService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GbifUser
authenticate(String identifier, String password)
Authenticates a user.GbifUser
get(String identifier)
Get aGbifUser
by identifier (username or email).
-
-
-
Method Detail
-
get
@Nullable GbifUser get(String identifier)
Get aGbifUser
by identifier (username or email).- Parameters:
identifier
- username or email- Returns:
- the user or null if the user is not found
-
authenticate
@Nullable GbifUser authenticate(String identifier, String password)
Authenticates a user.- Parameters:
identifier
- username or emailpassword
- clear text password- Returns:
- the authenticated user or null if not found or wrong credentials provided
-
-