...
- Create an AttributeFilterContext and populate it with appropriate parameters (where relevant)
- The canonical Prinicipal name
- The entityID of the IdP and the SP
- The authentication method applied.
- Add a lookup strategy to allow relevant filters to navigate from the Attribute Filter Context to a SAMLMetadataContext via a call to setRequesterMetadataContextLookupStrategy
- Any requested attributed (converted into into internal names and IdPRequestedAttribute) should be populated via a call to setRequestedAttributes
- The attributes to be filteres should be populated via a call to setRequessetPrefilteredIdPAttributestedAttributes
- Locate an Attribute Filter. This would usually be done via a ReloadableSpringService. See Configuration, Resources and ReloadReloadableConfiguration.
- Call the filter. After filtering the result can be extracted via the getFilteredIdPAttributes method.
- If using a ReloadableSpringService. do not forget to call unpinComponent.
...