Class ResponseModeLookupStrategy

java.lang.Object
net.shibboleth.profile.context.navigate.messaging.AbstractRelyingPartyLookupFunction<ResultType>
net.shibboleth.sp.oidc.profile.context.navigate.AbstractAgentAndRelyingPartyContextLookupFunction<com.nimbusds.oauth2.sdk.ResponseMode>
net.shibboleth.sp.oidc.profile.config.navigate.ResponseModeLookupStrategy
All Implemented Interfaces:
Function<org.opensaml.messaging.context.MessageContext,com.nimbusds.oauth2.sdk.ResponseMode>, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,com.nimbusds.oauth2.sdk.ResponseMode>

public class ResponseModeLookupStrategy extends AbstractAgentAndRelyingPartyContextLookupFunction<com.nimbusds.oauth2.sdk.ResponseMode>
A lookup strategy that resolves an OpenID Connect ResponseMode from the OIDCAuthenticationRelyingPartyProfileConfiguration. If a response mode is configured in the relying party profile, it is parsed into a known ResponseMode value. If no configuration is available or the configured value does not map to a supported response mode, the lookup returns null.
  • Constructor Details

    • ResponseModeLookupStrategy

      public ResponseModeLookupStrategy()
  • Method Details

    • apply

      public com.nimbusds.oauth2.sdk.ResponseMode apply(@Nullable org.opensaml.messaging.context.MessageContext messageContext)
    • parseResponseMode

      @Nullable private com.nimbusds.oauth2.sdk.ResponseMode parseResponseMode(@Nullable String responseModeFromProfile)
      Parse the responseModeFromProfile into a known ResponseMode.
      Parameters:
      responseModeFromProfile - the response_mode as a string
      Returns:
      the parsed ResponseMode, or null if the input type is unknown