Class RemoteLoginProcessor

java.lang.Object
com.inet.authentication.LoginProcessor
com.inet.authentication.RemoteLoginProcessor

public abstract class RemoteLoginProcessor extends LoginProcessor
A WebUserInfo which requests authorization data from an external source (outside of the Java VM).
Since:
inetcore 1.1
  • Constructor Details

    • RemoteLoginProcessor

      protected RemoteLoginProcessor(AuthenticationDescription description)
      Create a new LoginProcessor
      Parameters:
      description - the AuthenticationDescription for creating this login processor
      Since:
      inetcore 4.0
  • Method Details

    • requestLoginData

      public abstract void requestLoginData(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Request the data for a login of a client - the data sent to the response object can be form data or an HTTP status 401, depending on the scenario.
      Parameters:
      request - the current HTTP request object to read from
      response - the current HTTP response object to write to
      Since:
      inetcore 1.1
    • transferClientLoginData

      public abstract boolean transferClientLoginData(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Send the login answer of the client (browser) to a login script or external library. This is only called if an Authorization HTTP header exists. If possible this should not request a 401.
      Parameters:
      request - the current HTTP request object to read from
      response - the current HTTP response object to write to
      Returns:
      true, if everything checks out and the caller can continue. false if an answer was sent to the client (browser) and the stream was closed.
      Since:
      inetcore 1.1
    • transferFormLoginData

      public boolean transferFormLoginData(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Set the answer of a form authorization.
      Parameters:
      request - the current HTTP request object to read from
      response - the current HTTP response object to write to
      Returns:
      true, if everything checks out and the caller can continue (redirect to the original page). false if an answer was already sent to the client (browser) and the stream was closed.
      Throws:
      IllegalStateException - if not override
      Since:
      inetcore 1.1
    • supportsFormLogin

      public boolean supportsFormLogin()
      If the authentication provider supports form authentication.
      Returns:
      true, if transferFormLoginData is implemented
      Since:
      inetcore 2.3
    • isMasterPassword

      public boolean isMasterPassword()
      Whether this is a master password check or not
      Returns:
      true if master password
      Since:
      inetcore 1.1