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.-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.sp.oidc.profile.context.navigate.AbstractAgentAndRelyingPartyContextLookupFunction
AbstractAgentAndRelyingPartyContextLookupFunction.DDFDirection -
Field Summary
Fields inherited from class net.shibboleth.sp.oidc.profile.context.navigate.AbstractAgentAndRelyingPartyContextLookupFunction
PRC_LOOKUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.ResponseModeapply(org.opensaml.messaging.context.MessageContext messageContext) private com.nimbusds.oauth2.sdk.ResponseModeparseResponseMode(String responseModeFromProfile) Parse theresponseModeFromProfileinto a knownResponseMode.Methods inherited from class net.shibboleth.sp.oidc.profile.context.navigate.AbstractAgentAndRelyingPartyContextLookupFunction
getAgent, getAgentRequestContext, getApplication, getDDF, getOIDCLogoutProfileConfiguration, getOIDCRelyingPartyProfileConfiguration, isFeatureDisallowed, setAgentRequestContextLookupStrategyMethods inherited from class net.shibboleth.profile.context.navigate.messaging.AbstractRelyingPartyLookupFunction
getProfileRequestContext, getProfileRequestContextLookupStrategy, getRelyingPartyContext, getRelyingPartyContextLookupStrategy, setProfileRequestContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
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 theresponseModeFromProfileinto a knownResponseMode.- Parameters:
responseModeFromProfile- the response_mode as a string- Returns:
- the parsed
ResponseMode, or null if the input type is unknown
-