Klasse 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).
Seit:
inetcore 1.1
  • Konstruktordetails

    • RemoteLoginProcessor

      protected RemoteLoginProcessor(AuthenticationDescription description)
      Create a new LoginProcessor
      Parameter:
      description - the AuthenticationDescription for creating this login processor
      Seit:
      inetcore 4.0
  • Methodendetails

    • requestLoginData

      public abstract void requestLoginData(jakarta.servlet.http.HttpServletRequest request, jakarta.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.
      Parameter:
      request - the current HTTP request object to read from
      response - the current HTTP response object to write to
      Seit:
      inetcore 1.1
    • transferClientLoginData

      public abstract boolean transferClientLoginData(jakarta.servlet.http.HttpServletRequest request, jakarta.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.
      Parameter:
      request - the current HTTP request object to read from
      response - the current HTTP response object to write to
      Gibt zurück:
      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.
      Seit:
      inetcore 1.1
    • transferFormLoginData

      public boolean transferFormLoginData(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Set the answer of a form authorization.
      Parameter:
      request - the current HTTP request object to read from
      response - the current HTTP response object to write to
      Gibt zurück:
      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.
      Löst aus:
      IllegalStateException - if not override
      Seit:
      inetcore 1.1
    • supportsFormLogin

      public boolean supportsFormLogin()
      If the authentication provider supports form authentication.
      Gibt zurück:
      true, if transferFormLoginData is implemented
      Seit:
      inetcore 2.3
    • isMasterPassword

      public boolean isMasterPassword()
      Whether this is a master password check or not
      Gibt zurück:
      true if master password
      Seit:
      inetcore 1.1