Package org.keycloak.userprofile
Interface UserProfileDecorator
- All Known Implementing Classes:
 KerberosFederationProvider,LDAPStorageProvider,SSSDFederationProvider,UserCacheSession,UserStorageManager
public interface UserProfileDecorator
This interface allows user storage providers to customize the user profile configuration and its attributes for realm on a per-user storage provider basis.
- Author:
 - Pedro Igor
 
- 
Method Summary
Modifier and TypeMethodDescriptiondecorateUserProfile(String providerId, UserProfileMetadata metadata) Decorates user profile with additional metadata. 
- 
Method Details
- 
decorateUserProfile
Decorates user profile with additional metadata. For instance, metadata attributes, which are available just for your user-storage provider can be added there, so they are available just for the users coming from your provider.
This method is invoked every time a user is being managed through a user profile provider.
- Parameters:
 providerId- the id of the user storage provider to which the user is associated withmetadata- the currentUserProfileMetadatafor the current realm- Returns:
 - a list of attribute metadata.The 
AttributeMetadatareturned from this method overrides any other metadata already set inmetadatafor a given attribute. 
 
 -