Class ProfileService

java.lang.Object
org.elasticsearch.xpack.security.profile.ProfileService

public class ProfileService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileService(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 Type
    Method
    Description
    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.
    void
    getProfile(String uid, Set<String> dataKeys, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.profile.Profile> listener)
     
    void
    updateProfileData(org.elasticsearch.xpack.core.security.action.profile.UpdateProfileDataRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void getProfile(String uid, @Nullable Set<String> dataKeys, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.profile.Profile> listener)
    • 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)