Class DefaultRequestCodeChallengeLookupFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​String>, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>

    public class DefaultRequestCodeChallengeLookupFunction
    extends AbstractAuthenticationRequestLookupFunction<String>
    A function that returns code challenge value of the authentication request via a lookup function. This default lookup locates code challenge from oidc authentication request if available. If information is not available, null is returned. If there is code_challenge in request object it is used instead of code_challenge parameter.
    • Field Detail

      • log

        @Nonnull
        private org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • DefaultRequestCodeChallengeLookupFunction

        public DefaultRequestCodeChallengeLookupFunction()
    • Method Detail

      • doLookup

        @Nullable
        String doLookup​(@Nonnull
                        com.nimbusds.openid.connect.sdk.AuthenticationRequest req)
        Implemented to perform the actual lookup.
        Specified by:
        doLookup in class AbstractAuthenticationRequestLookupFunction<String>
        Parameters:
        req - authentication request to perform the lookup from.
        Returns:
        lookup value.