Class AbstractRequestEncoderFunction

    • Constructor Detail

      • AbstractRequestEncoderFunction

        protected AbstractRequestEncoderFunction()
        Constructor.
    • Method Detail

      • getAuthenticationResponse

        @Nullable
        protected com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse getAuthenticationResponse()
        Returns the authentication response from the upstream OP.
        Returns:
        the authentication response.
      • getAuthenticationRequest

        @Nullable
        protected OIDCAuthenticationRequest getAuthenticationRequest()
        Returns the authentication request build by this IdP.
        Returns:
        the authentication request.
      • getClientAuthenticationContext

        @Nullable
        protected OAuth2ClientAuthenticationContext getClientAuthenticationContext()
        Get the client authentication context.
        Returns:
        the client context.
      • getProviderMetadataContext

        @Nullable
        protected OIDCProviderMetadataContext getProviderMetadataContext()
        Returns the OIDC provider metadata context.
        Returns:
        The provider metadata context.
      • apply

        @Nullable
        public org.apache.http.client.methods.HttpUriRequest apply​(@Nonnull
                                                                   ProfileRequestContext profileRequestContext)

        Creates the HTTP request. Any error in creating the request should return null to indicate failure.

        Specified by:
        apply in interface Function<ProfileRequestContext,​org.apache.http.client.methods.HttpUriRequest>
      • doApply

        @Nullable
        protected abstract org.apache.http.client.methods.HttpUriRequest doApply​(@Nonnull
                                                                                 ProfileRequestContext profileRequestContext)
        Encode a HttpUriRequest from the given context. Implementations should override this method.
        Parameters:
        profileRequestContext - the profile request context.
        Returns:
        the request to execute.