Class AttributeResolutionSubjectLookupFunction

All Implemented Interfaces:
Function<ProfileRequestContext,String>, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, ContextDataLookupFunction<ProfileRequestContext,String>

public class AttributeResolutionSubjectLookupFunction extends AbstractIdentifiableInitializableComponent implements ContextDataLookupFunction<ProfileRequestContext,String>
A function that returns subject identifier from filtered claims. Encoded value of the first attribute that would be encoded as claim sub is returned. TODO: This needs revisiting, it's not really a great way to configure this. Specifying the attribute(s) to pull from would be the expected solution here. It may be warranted to just repurpose the IdP's NameID generation layer since that's nominally type-invariant anyway, it can handle both SAML 1 and SAML 2 objects now.