public class CrestUserProfileService extends Object implements UserProfileService
CrestUserProfileService
is responsible for interactions with AM users endpoint
using resource version 3.0; since AM v13.Constructor and Description |
---|
CrestUserProfileService(RequestHandler requestHandler,
Set<String> profileAttributes)
Creates a new
CrestUserProfileService which is responsible for interactions with AM users endpoint. |
Modifier and Type | Method and Description |
---|---|
Promise<UserProfile,UserProfileException> |
getUserProfile(Context context,
String username)
Returns a promise that will be completed with an
UserProfile or with an UserProfileException
in case of errors. |
public CrestUserProfileService(RequestHandler requestHandler, Set<String> profileAttributes)
CrestUserProfileService
which is responsible for interactions with AM users endpoint.requestHandler
- The requestHandler used when interacting with AM users endpoint.profileAttributes
- The profile attributes to request.public Promise<UserProfile,UserProfileException> getUserProfile(Context context, String username)
UserProfileService
UserProfile
or with an UserProfileException
in case of errors.getUserProfile
in interface UserProfileService
context
- The request context.username
- The username that identifies the user to retrieve the profile attributes for.UserProfile
or with an ResourceException
in case
of errors.Copyright 2011-2017 ForgeRock AS.