Class DeferredAuthentication

    • Constructor Detail

      • DeferredAuthentication

        public DeferredAuthentication​(LoginAuthenticator authenticator)
    • Method Detail

      • authenticate

        public Authentication authenticate​(jakarta.servlet.ServletRequest request)
        Description copied from interface: Authentication.Deferred
        Authenticate if possible without sending a challenge. This is used to check credentials that have been sent for non-mandatory authentication.
        Specified by:
        authenticate in interface Authentication.Deferred
        Parameters:
        request - the request
        Returns:
        The new Authentication state.
      • authenticate

        public Authentication authenticate​(jakarta.servlet.ServletRequest request,
                                           jakarta.servlet.ServletResponse response)
        Description copied from interface: Authentication.Deferred
        Authenticate and possibly send a challenge. This is used to initiate authentication for previously non-mandatory authentication.
        Specified by:
        authenticate in interface Authentication.Deferred
        Parameters:
        request - the request
        response - the response
        Returns:
        The new Authentication state.
      • getPreviousAssociation

        public java.lang.Object getPreviousAssociation()
      • isDeferred

        public static boolean isDeferred​(jakarta.servlet.http.HttpServletResponse response)
        Parameters:
        response - the response
        Returns:
        true if this response is from a deferred call to authenticate(ServletRequest)