Class WSServletRequestCallback

java.lang.Object
com.ibm.wsspi.security.auth.callback.WSServletRequestCallback
All Implemented Interfaces:
Callback

public class WSServletRequestCallback extends Object implements Callback

The WSServletRequestCallback allows an HttpServletRequest object to be gathered by CallbackHandler and pass it to the LoginModule stack.

Since:
1.0
  • Constructor Details

    • WSServletRequestCallback

      public WSServletRequestCallback(String prompt)

      Construct a WSServletRequestCallback object with a prompt hint.

      Parameters:
      prompt - The prompt hint.
    • WSServletRequestCallback

      public WSServletRequestCallback(String prompt, jakarta.servlet.http.HttpServletRequest req)

      Construct a WSServletRequestCallback object with a prompt hint and an HttpServletRequest instance.

      Parameters:
      prompt - The prompt hint.
      HttpServletRequest - req
  • Method Details

    • setHttpServletRequest

      public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest req)

      Set the HttpServletRequest instance.

      Parameters:
      req - The HttpServletRequest object.
    • getHttpServletRequest

      public jakarta.servlet.http.HttpServletRequest getHttpServletRequest()

      Return the HttpServletRequest. If the HttpServletRequest instance set in Constructor is null, then null is returned.

      Returns:
      The HttpServletRequest, could be null.
    • getPrompt

      public String getPrompt()

      Return the prompt. If the prompt set in Constructor is null, then null is returned.

      Returns:
      The prompt, could be null.
    • toString

      public String toString()

      Returns the name of the Callback. Typically, it is the name of the class.

      Overrides:
      toString in class Object
      Returns:
      The name of the Callback.