Class AbstractRequestEncoderFunction

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • providerMetadataLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> providerMetadataLookupStrategy
        Lookup strategy to locate the OP metadata to use.
      • oauth2ClientAuthenticationContextLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.oidc.authn.context.OAuth2ClientAuthenticationContext> oauth2ClientAuthenticationContextLookupStrategy
        The strategy used to lookup or create the OAuth2ClientAuthenticationContext.
      • authnResponse

        @Nullable
        private com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse authnResponse
        OIDC authentication response from upstream OP.
      • authnRequest

        @Nullable
        private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest authnRequest
        OIDC authentication request built by the IdP.
      • providerMetadataContext

        @Nullable
        private net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext providerMetadataContext
        OIDC Metadata context.
      • clientAuthnContext

        @Nullable
        private net.shibboleth.oidc.authn.context.OAuth2ClientAuthenticationContext clientAuthnContext
        The context used to store client authentication information for communication with a upstream OP.
    • Constructor Detail

      • AbstractRequestEncoderFunction

        protected AbstractRequestEncoderFunction()
        Constructor.
    • Method Detail

      • setOIDCClientAuthenticationContextContextLookupStrategy

        public void setOIDCClientAuthenticationContextContextLookupStrategy​(@Nonnull
                                                                            Function<ProfileRequestContext,​net.shibboleth.oidc.authn.context.OAuth2ClientAuthenticationContext> strgy)
        Set the strategy to lookup the OAuth2ClientAuthenticationContext.
        Parameters:
        strgy - the strategy.
      • setProviderMetadataLookupStrategy

        public void setProviderMetadataLookupStrategy​(@Nonnull
                                                      Function<ProfileRequestContext,​net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> strategy)
        Set the lookup strategy to locate the OpenID providers metadata.
        Parameters:
        strategy - the strategy.
      • 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 net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest getAuthenticationRequest()
        Returns the authentication request build by this IdP.
        Returns:
        the authentication request.
      • getClientAuthenticationContext

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

        @Nullable
        protected net.shibboleth.oidc.metadata.context.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.