Class ExternalAuthenticationImpl


  • public class ExternalAuthenticationImpl
    extends net.shibboleth.idp.authn.ExternalAuthentication
    Implementation of the ExternalAuthentication API that handles moving information in and out of request attributes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean extendedFlow
      Track whether we were invoked from within another login flow.
      private Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
      Lookup function for relying party context.
      • Fields inherited from class net.shibboleth.idp.authn.ExternalAuthentication

        ATTRIBUTES_KEY, AUTHENTICATING_AUTHORITIES_KEY, AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, CONVERSATION_KEY, DONOTCACHE_KEY, EXTENDED_FLOW_PARAM, FORCE_AUTHN_PARAM, PASSIVE_AUTHN_PARAM, PREVIOUSRESULT_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, RELYING_PARTY_PARAM, REVOKECONSENT_KEY, SUBJECT_KEY, SWF_KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doFinish​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.opensaml.profile.context.ProfileRequestContext profileRequestContext, net.shibboleth.idp.authn.context.ExternalAuthenticationContext extContext)
      protected void doStart​(javax.servlet.http.HttpServletRequest request, org.opensaml.profile.context.ProfileRequestContext profileRequestContext, net.shibboleth.idp.authn.context.ExternalAuthenticationContext externalAuthenticationContext)
      void setRelyingPartyContextLookupStrategy​(Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
      Set lookup strategy for relying party context.
      • Methods inherited from class net.shibboleth.idp.authn.ExternalAuthentication

        finishExternalAuthentication, getExternalRedirect, getProfileRequestContext, startExternalAuthentication
    • Field Detail

      • relyingPartyContextLookupStrategy

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

        private final boolean extendedFlow
        Track whether we were invoked from within another login flow.
    • Constructor Detail

      • ExternalAuthenticationImpl

        public ExternalAuthenticationImpl()
        Constructor.
      • ExternalAuthenticationImpl

        public ExternalAuthenticationImpl​(boolean extended)
        Constructor.
        Parameters:
        extended - called as extended flow from another login flow
    • Method Detail

      • setRelyingPartyContextLookupStrategy

        public void setRelyingPartyContextLookupStrategy​(@Nonnull
                                                         Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
        Set lookup strategy for relying party context.
        Parameters:
        strategy - lookup strategy
      • doStart

        protected void doStart​(@Nonnull
                               javax.servlet.http.HttpServletRequest request,
                               @Nonnull
                               org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
                               @Nonnull
                               net.shibboleth.idp.authn.context.ExternalAuthenticationContext externalAuthenticationContext)
                        throws net.shibboleth.idp.authn.ExternalAuthenticationException
        Overrides:
        doStart in class net.shibboleth.idp.authn.ExternalAuthentication
        Throws:
        net.shibboleth.idp.authn.ExternalAuthenticationException
      • doFinish

        protected void doFinish​(@Nonnull
                                javax.servlet.http.HttpServletRequest request,
                                @Nonnull
                                javax.servlet.http.HttpServletResponse response,
                                @Nonnull
                                org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
                                @Nonnull
                                net.shibboleth.idp.authn.context.ExternalAuthenticationContext extContext)
                         throws net.shibboleth.idp.authn.ExternalAuthenticationException,
                                IOException
        Specified by:
        doFinish in class net.shibboleth.idp.authn.ExternalAuthentication
        Throws:
        net.shibboleth.idp.authn.ExternalAuthenticationException
        IOException