Class EventAuditingAttributeChangeListener

java.lang.Object
org.keycloak.userprofile.EventAuditingAttributeChangeListener
All Implemented Interfaces:
org.keycloak.userprofile.AttributeChangeListener

public class EventAuditingAttributeChangeListener extends Object implements org.keycloak.userprofile.AttributeChangeListener
AttributeChangeListener to audit user profile attribute changes into Event. Adds info about user profile attribute change into Event's detail field.
Author:
Vlastimil Elias <velias@redhat.com>
See Also:
  • UserProfile.update(AttributeChangeListener...)
  • Constructor Details

    • EventAuditingAttributeChangeListener

      public EventAuditingAttributeChangeListener(org.keycloak.userprofile.UserProfile profile, org.keycloak.events.EventBuilder event)
      Parameters:
      profile - used to read attribute configuration from
      event - to add detail info into
  • Method Details

    • onChange

      public void onChange(String attributeName, org.keycloak.models.UserModel userModel, List<String> oldValue)
      Specified by:
      onChange in interface org.keycloak.userprofile.AttributeChangeListener