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
ConstructorDescriptionWSServletResponseCallback
(String prompt) Construct aWSServletResponseCallback
object with a prompt hint.WSServletResponseCallback
(String prompt, jakarta.servlet.http.HttpServletResponse resp) Construct aWSServletResponseCallback
object with a prompt hint and an HttpServletResponse instance. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletResponse
Return the HttpServletResponse.Return the prompt.void
setHttpServletResponse
(jakarta.servlet.http.HttpServletResponse resp) Set the HttpServletResponse instance.toString()
Returns the name of the Callback.
-
Constructor Details
-
WSServletResponseCallback
Construct a
WSServletResponseCallback
object with a prompt hint.- Parameters:
prompt
- The prompt hint.
-
WSServletResponseCallback
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(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
, thennull
is returned.- Returns:
- The HttpServletResponse, could be
null
.
-
getPrompt
Return the prompt. If the prompt set in Constructor is
null
, thennull
is returned.- Returns:
- The prompt, could be
null
.
-
toString
Returns the name of the Callback. Typically, it is the name of the class.
-