Class StateTokenLookupStrategy
java.lang.Object
net.shibboleth.sp.oidc.messaging.context.navigate.StateTokenLookupStrategy
- All Implemented Interfaces:
Function<org.opensaml.messaging.context.MessageContext,net.shibboleth.oidc.profile.core.StateToken>
public class StateTokenLookupStrategy
extends Object
implements Function<org.opensaml.messaging.context.MessageContext,net.shibboleth.oidc.profile.core.StateToken>
A strategy function that looks up the state value from the token stored in the
StateDataContext. This
keys/links the OAuth 2.0 state to the stored authentication request data.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.opensaml.profile.context.navigate.ParentProfileRequestContextLookup<org.opensaml.messaging.context.MessageContext>Lookup function for parent ProfileRequestContext.private final Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.sp.context.StateDataContext> Strategy used to locate theStateDataContext. -
Constructor Summary
ConstructorsConstructorDescriptionStateTokenLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.sp.context.StateDataContext> strategy) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionnet.shibboleth.oidc.profile.core.StateTokenapply(org.opensaml.messaging.context.MessageContext messageCtx)
-
Field Details
-
PRC_LOOKUP
@Nonnull private static final org.opensaml.profile.context.navigate.ParentProfileRequestContextLookup<org.opensaml.messaging.context.MessageContext> PRC_LOOKUPLookup function for parent ProfileRequestContext. -
stateDataContextLookupStrategy
@Nonnull private final Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.sp.context.StateDataContext> stateDataContextLookupStrategyStrategy used to locate theStateDataContext.
-
-
Constructor Details
-
StateTokenLookupStrategy
public StateTokenLookupStrategy(@Nonnull @ParameterName(name="stateDataContextLookupStrategy") Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.sp.context.StateDataContext> strategy) Constructor.- Parameters:
strategy- the lookup strategy used to locate the state data context
-
-
Method Details