Class DefaultPrincipalDeterminationStrategy<T extends Principal>

java.lang.Object
net.shibboleth.idp.authn.principal.DefaultPrincipalDeterminationStrategy<T>
Type Parameters:
T - the custom Principal type to locate
All Implemented Interfaces:
Function<ProfileRequestContext,T>

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.