Class WSServletResponseCallback
java.lang.Object
com.ibm.wsspi.security.auth.callback.WSServletResponseCallback
- All Implemented Interfaces:
Callback
The WSServletResponseCallback allows an HttpServletResponse object to be gathered by
CallbackHandler and pass it to the LoginModule stack.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionWSServletResponseCallback(String prompt) Construct aWSServletResponseCallbackobject with a prompt hint.WSServletResponseCallback(String prompt, jakarta.servlet.http.HttpServletResponse resp) Construct aWSServletResponseCallbackobject with a prompt hint and an HttpServletResponse instance. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletResponseReturn the HttpServletResponse.Return the prompt.voidsetHttpServletResponse(jakarta.servlet.http.HttpServletResponse resp) Set the HttpServletResponse instance.toString()Returns the name of the Callback.
-
Constructor Details
-
WSServletResponseCallback
Construct a
WSServletResponseCallbackobject with a prompt hint.- Parameters:
prompt- The prompt hint.
-
WSServletResponseCallback
Construct a
WSServletResponseCallbackobject with a prompt hint and an HttpServletResponse instance.- Parameters:
prompt- The prompt hint.HttpServletResponse- resp
-
-
Method Details
-
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, thennullis returned.- Returns:
- The HttpServletResponse, could be
null.
-
getPrompt
Return the prompt. If the prompt set in Constructor is
null, thennullis returned.- Returns:
- The prompt, could be
null.
-
toString
Returns the name of the Callback. Typically, it is the name of the class.
-