Class ProfileService
java.lang.Object
org.elasticsearch.xpack.security.profile.ProfileService
-
Constructor Summary
ConstructorsConstructorDescriptionProfileService(org.elasticsearch.common.settings.Settings settings, Clock clock, org.elasticsearch.client.internal.Client client, SecurityIndexManager profileIndex, org.elasticsearch.threadpool.ThreadPool threadPool) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateProfile(org.elasticsearch.xpack.core.security.authc.Authentication authentication, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.profile.Profile> listener) Create a new profile or update an existing profile for the user of the given Authentication.voidgetProfile(String uid, Set<String> dataKeys, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.profile.Profile> listener) voidupdateProfileData(org.elasticsearch.xpack.core.security.action.profile.UpdateProfileDataRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
-
Constructor Details
-
ProfileService
public ProfileService(org.elasticsearch.common.settings.Settings settings, Clock clock, org.elasticsearch.client.internal.Client client, SecurityIndexManager profileIndex, org.elasticsearch.threadpool.ThreadPool threadPool)
-
-
Method Details
-
getProfile
-
activateProfile
public void activateProfile(org.elasticsearch.xpack.core.security.authc.Authentication authentication, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.profile.Profile> listener) Create a new profile or update an existing profile for the user of the given Authentication.- Parameters:
authentication- This is the object from which the profile will be created or updated. It contains information about the username and relevant realms and domain. Note that this authentication object does not belong to the authenticating user because the associated ActivateProfileRequest provides the authentication information in the request body while the authenticating user is the one that has privileges to submit the request.
-
updateProfileData
public void updateProfileData(org.elasticsearch.xpack.core.security.action.profile.UpdateProfileDataRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
-