Interface DelegateAuthenticationFilterHandler

  • All Known Implementing Classes:
    AbstactKeycloakDelegateAuthenticationHandler

    public interface DelegateAuthenticationFilterHandler
    The Vertigo Security Filter SecurityFilter can delegate the authentication workflow to a custom compoment. This component must implement this interface. This delegate has the hability to execute function before/after the filter chain and has a callback for a finally block. It is executed after the creation of the UserSession (in Vertigo's terms) so you're in the right place to populate the fined grained security context for the connected user.
    Author:
    mlaroche
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void doAfterChain​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Code to execute before the after to the filter chain.
      io.vertigo.core.lang.Tuple<Boolean,​javax.servlet.http.HttpServletRequest> doBeforeChain​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Code to execute before the call to the filter chain.
      void doFinally​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Code to execute in a finally block that wraps all the calls to this delegate and the filter chain
    • Method Detail

      • doBeforeChain

        io.vertigo.core.lang.Tuple<Boolean,​javax.servlet.http.HttpServletRequest> doBeforeChain​(javax.servlet.http.HttpServletRequest request,
                                                                                                      javax.servlet.http.HttpServletResponse response)
        Code to execute before the call to the filter chain.
        Parameters:
        request - the httpRequest
        response - the httpResponse
        Returns:
        a tuple composed of two values : - a boolean to indicate wether the request has been handled in the method and chain must be stopped - the HttpRequest that will be transfered in the filter chain. (for example if you need to wrap it for any reason )
      • doAfterChain

        void doAfterChain​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
        Code to execute before the after to the filter chain.
        Parameters:
        request - the httpRequest
        response - the httpResponse
      • doFinally

        void doFinally​(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
        Code to execute in a finally block that wraps all the calls to this delegate and the filter chain
        Parameters:
        request - the httpRequest
        response - the httpResponse