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

    Fields
    Modifier and Type
    Field
    Description
    private 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 the StateDataContext.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StateTokenLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.sp.context.StateDataContext> strategy)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.shibboleth.oidc.profile.core.StateToken
    apply(org.opensaml.messaging.context.MessageContext messageCtx)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Field Details

    • PRC_LOOKUP

      @Nonnull private static final org.opensaml.profile.context.navigate.ParentProfileRequestContextLookup<org.opensaml.messaging.context.MessageContext> PRC_LOOKUP
      Lookup function for parent ProfileRequestContext.
    • stateDataContextLookupStrategy

      @Nonnull private final Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.sp.context.StateDataContext> stateDataContextLookupStrategy
      Strategy used to locate the StateDataContext.
  • 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

    • apply

      public net.shibboleth.oidc.profile.core.StateToken apply(org.opensaml.messaging.context.MessageContext messageCtx)
      Specified by:
      apply in interface Function<org.opensaml.messaging.context.MessageContext,net.shibboleth.oidc.profile.core.StateToken>