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 Summary
FieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Authentication context lookup strategy.private final T
Deprecated, for removal: This API element is subject to removal in a future version.Default Principal to return.Deprecated, for removal: This API element is subject to removal in a future version.Type of Principal to return. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPrincipalDeterminationStrategy
(Class<T> type, T principal) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionapply
(ProfileRequestContext input) Deprecated, for removal: This API element is subject to removal in a future version.void
setAuthenticationContextLookupStrategy
(Function<ProfileRequestContext, AuthenticationContext> strategy) Deprecated, for removal: This API element is subject to removal in a future version.Set lookup strategy forAuthenticationContext
.
-
Field Details
-
principalType
Deprecated, for removal: This API element is subject to removal in a future version.Type of Principal to return. -
defaultPrincipal
Deprecated, for removal: This API element is subject to removal in a future version.Default Principal to return. -
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 typeprincipal
- default Principal to return
-
-
Method Details
-
setAuthenticationContextLookupStrategy
public void setAuthenticationContextLookupStrategy(@Nonnull Function<ProfileRequestContext, AuthenticationContext> strategy) Deprecated, for removal: This API element is subject to removal in a future version.Set lookup strategy forAuthenticationContext
.- Parameters:
strategy
- lookup strategy
-
apply
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
apply
in interfaceFunction<ProfileRequestContext,
T extends Principal>
-