Class 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
    See Also:
    UserProfile.update(AttributeChangeListener...)
    • Constructor Detail

      • 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 Detail

      • onChange

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