Package org.keycloak.userprofile
Class EventAuditingAttributeChangeListener
java.lang.Object
org.keycloak.userprofile.EventAuditingAttributeChangeListener
- All Implemented Interfaces:
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:
-
Constructor Summary
ConstructorDescriptionEventAuditingAttributeChangeListener
(UserProfile profile, EventBuilder event) -
Method Summary
-
Constructor Details
-
EventAuditingAttributeChangeListener
- Parameters:
profile
- used to read attribute configuration fromevent
- to add detail info into
-
-
Method Details
-
onChange
Description copied from interface:AttributeChangeListener
Method called for each user attribute change.- Specified by:
onChange
in interfaceAttributeChangeListener
- Parameters:
attributeName
- of the changed user attributeuserModel
- model where new attribute value is applied already (can be null if attribute is removed)oldValue
- of the attribute before the change (can be null)
-