Class WSServletResponseCallback

  • All Implemented Interfaces:
    javax.security.auth.callback.Callback

    public class WSServletResponseCallback
    extends java.lang.Object
    implements javax.security.auth.callback.Callback

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

    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      WSServletResponseCallback​(java.lang.String prompt)
      Construct a WSServletResponseCallback object with a prompt hint.
      WSServletResponseCallback​(java.lang.String prompt, jakarta.servlet.http.HttpServletResponse resp)
      Construct a WSServletResponseCallback object with a prompt hint and an HttpServletResponse instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.servlet.http.HttpServletResponse getHttpServletResponse()
      Return the HttpServletResponse.
      java.lang.String getPrompt()
      Return the prompt.
      void setHttpServletResponse​(jakarta.servlet.http.HttpServletResponse resp)
      Set the HttpServletResponse instance.
      java.lang.String toString()
      Returns the name of the Callback.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WSServletResponseCallback

        public WSServletResponseCallback​(java.lang.String prompt)

        Construct a WSServletResponseCallback object with a prompt hint.

        Parameters:
        prompt - The prompt hint.
      • WSServletResponseCallback

        public WSServletResponseCallback​(java.lang.String prompt,
                                         jakarta.servlet.http.HttpServletResponse resp)

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

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

      • setHttpServletResponse

        public void setHttpServletResponse​(jakarta.servlet.http.HttpServletResponse resp)

        Set the HttpServletResponse instance.

        Parameters:
        resp - The HttpServletResponse object.
      • getHttpServletResponse

        public jakarta.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 java.lang.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 java.lang.String toString()

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

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