Class WSServletResponseCallback

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

public class WSServletResponseCallback extends Object implements Callback

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

Since:
1.0
  • Constructor Details

    • WSServletResponseCallback

      public WSServletResponseCallback(String prompt)

      Construct a WSServletResponseCallback object with a prompt hint.

      Parameters:
      prompt - The prompt hint.
    • WSServletResponseCallback

      public WSServletResponseCallback(String prompt, javax.servlet.http.HttpServletResponse resp)

      Construct a WSServletResponseCallback object with a prompt hint and an HttpServletResponse instance.

      Parameters:
      prompt - The prompt hint.
      HttpServletResponse - resp
  • Method Details

    • setHttpServletResponse

      public void setHttpServletResponse(javax.servlet.http.HttpServletResponse resp)

      Set the HttpServletResponse instance.

      Parameters:
      resp - The HttpServletResponse object.
    • getHttpServletResponse

      public javax.servlet.http.HttpServletResponse getHttpServletResponse()

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

      Returns:
      The HttpServletResponse, 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.