Class WSServletRequestCallback
java.lang.Object
com.ibm.wsspi.security.auth.callback.WSServletRequestCallback
- All Implemented Interfaces:
Callback
The WSServletRequestCallback
allows an HttpServletRequest object to be gathered by
CallbackHandler
and pass it to the LoginModule
stack.
- Since:
- 1.0
-
Constructor Summary
ConstructorDescriptionWSServletRequestCallback
(String prompt) Construct aWSServletRequestCallback
object with a prompt hint.WSServletRequestCallback
(String prompt, jakarta.servlet.http.HttpServletRequest req) Construct aWSServletRequestCallback
object with a prompt hint and an HttpServletRequest instance. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequest
Return the HttpServletRequest.Return the prompt.void
setHttpServletRequest
(jakarta.servlet.http.HttpServletRequest req) Set the HttpServletRequest instance.toString()
Returns the name of the Callback.
-
Constructor Details
-
WSServletRequestCallback
Construct a
WSServletRequestCallback
object with a prompt hint.- Parameters:
prompt
- The prompt hint.
-
WSServletRequestCallback
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
, thennull
is returned.- Returns:
- The HttpServletRequest, 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.
-