Class AbstractOIDCAuthenticationRequestActionMessageHandler

    • Field Detail

      • log

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

        @Nonnull
        private Function<MessageContext,​net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> providerMetadataLookupStrategy
        Lookup strategy to locate the OpenID Provider metadata to use.
      • relyingPartyContextLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
        Lookup function for relying party context.
      • authnRequest

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

        @Nullable
        private com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata providerMetadata
        OpenID Provider metadata .
      • profileConfiguration

        @Nullable
        private net.shibboleth.oidc.profile.config.OIDCAuthenticationRelyingPartyProfileConfiguration profileConfiguration
        Applicable profile configuration.
      • httpServletRequestSupplier

        @Nullable
        private NonnullSupplier<javax.servlet.http.HttpServletRequest> httpServletRequestSupplier
        Current HTTP request, if available.
    • 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 net.shibboleth.oidc.profile.core.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 net.shibboleth.oidc.profile.config.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.
      • setRelyingPartyContextLookupStrategy

        public void setRelyingPartyContextLookupStrategy​(@Nonnull
                                                         Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
        Set the strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext.
        Parameters:
        strategy - lookup strategy
      • setProviderMetadataLookupStrategy

        public void setProviderMetadataLookupStrategy​(@Nonnull
                                                      Function<MessageContext,​net.shibboleth.oidc.metadata.context.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