Class BestMatchLocationLookupStrategy
java.lang.Object
net.shibboleth.idp.saml.session.impl.BestMatchLocationLookupStrategy
- All Implemented Interfaces:
Function<ProfileRequestContext,
BestMatchLocationCriterion>
public class BestMatchLocationLookupStrategy
extends Object
implements Function<ProfileRequestContext,BestMatchLocationCriterion>
A strategy function for establishing an appropriate
BestMatchLocationCriterion
based on the AssertionConsumerService
location used to initiate a SAML2SPSession
.
Used during SAML 2.0 logout propagation to "fuzz" the determination of the best logout endpoint to use based on the original endpoint used.
Returns null if not applicable or the ACS is unknown.
-
Field Summary
FieldsModifier and TypeFieldDescriptionLookup strategy for context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ProfileRequestContext input) void
Set the lookup strategy for theLogoutPropagationContext
to access.
-
Field Details
-
logoutPropagationContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,LogoutPropagationContext> logoutPropagationContextLookupStrategyLookup strategy for context.
-
-
Constructor Details
-
BestMatchLocationLookupStrategy
public BestMatchLocationLookupStrategy()Constructor.
-
-
Method Details
-
setLogoutContextLookupStrategy
public void setLogoutContextLookupStrategy(@Nonnull Function<ProfileRequestContext, LogoutPropagationContext> strategy) Set the lookup strategy for theLogoutPropagationContext
to access.- Parameters:
strategy
- lookup strategy
-
apply
- Specified by:
apply
in interfaceFunction<ProfileRequestContext,
BestMatchLocationCriterion>
-