Class AbstractOIDCAuthenticationRequestActionMessageHandler

    • Constructor Detail

      • AbstractOIDCAuthenticationRequestActionMessageHandler

        protected AbstractOIDCAuthenticationRequestActionMessageHandler()
        Constructor.
    • Method Detail

      • setHttpServletRequestSupplier

        public void setHttpServletRequestSupplier​(@Nullable
                                                  NonnullSupplier<javax.servlet.http.HttpServletRequest> requestSupplier)
        Set the HTTP servlet request supplier.
        Parameters:
        requestSupplier - the supplier.
      • getHttpServletRequest

        @Nullable
        public javax.servlet.http.HttpServletRequest getHttpServletRequest()
        Get the HTTP servlet request supplier.
        Returns:
        the HTTP servlet request supplier
      • getHttpServletRequestSupplier

        @Nullable
        public NonnullSupplier<javax.servlet.http.HttpServletRequest> getHttpServletRequestSupplier()
        Get the supplier for HTTP request if available.
        Returns:
        current HTTP request
      • getAuthenticationRequest

        @Nullable
        protected OIDCAuthenticationRequest getAuthenticationRequest()
        Returns the authentication request build by this IdP. Should never be null after after doPreExecute has been called.
        Returns:
        the authentication request.
      • getProfileConfiguration

        @Nullable
        protected OIDCAuthenticationRelyingPartyProfileConfiguration getProfileConfiguration()
        Returns the profile configuration associated with this request. Should never be null after doPreExecute has been called.
        Returns:
        the profile configuration
      • getProviderMetadata

        @Nullable
        protected com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata getProviderMetadata()
        Returns the OpenID Provider metadata. Should never be null after after doPreExecute has been called.
        Returns:
        The provider metadata context.
      • setProviderMetadataLookupStrategy

        public void setProviderMetadataLookupStrategy​(@Nonnull
                                                      Function<MessageContext,​OIDCProviderMetadataContext> strategy)
        Set the lookup strategy to locate the OpenID providers metadata.
        Parameters:
        strategy - the strategy.
      • lookupProfileRequestContext

        @Nullable
        protected ProfileRequestContext lookupProfileRequestContext​(@Nonnull
                                                                    MessageContext messageContext)
        Lookup the profile request context from the given message context using the function PRC_LOOKUP.
        Parameters:
        messageContext - the message context to find the profile request context from
        Returns:
        the profile request context, or null if not found