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>

@Deprecated(since="4.3.0", forRemoval=true) public class DefaultPrincipalDeterminationStrategy<T extends Principal> extends Object implements Function<ProfileRequestContext,T>
Deprecated, for removal: This API element is subject to removal in a future version.
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.

  • Field Details

    • principalType

      @Nonnull private final Class<T extends Principal> principalType
      Deprecated, for removal: This API element is subject to removal in a future version.
      Type of Principal to return.
    • defaultPrincipal

      @Nonnull private final T extends Principal defaultPrincipal
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default Principal to return.
    • authnContextLookupStrategy

      @Nonnull private Function<ProfileRequestContext,AuthenticationContext> authnContextLookupStrategy
      Deprecated, for removal: This API element is subject to removal in a future version.
      Authentication context lookup strategy.
  • Constructor Details

    • DefaultPrincipalDeterminationStrategy

      public DefaultPrincipalDeterminationStrategy(@Nonnull @ParameterName(name="type") Class<T> type, @Nonnull @ParameterName(name="principal") T principal)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      type - class type for Principal type
      principal - default Principal to return
  • Method Details