Class DefaultPrincipalDeterminationStrategy<T extends Principal>

Type Parameters:
T - the custom Principal type to locate
All Implemented Interfaces:

public class DefaultPrincipalDeterminationStrategy<T extends Principal>
extends Object
implements Function<ProfileRequestContext,​T>
Function that returns the first custom Principal of a particular type found on the AuthenticationResult returned by AuthenticationContext.getAuthenticationResult().

The context is located using a lookup strategy, by default a child of the input context.

If for any reason a matching Principal can't be located, a default is returned.