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
ConstructorsConstructorDescriptionWSServletRequestCallback(String prompt) Construct aWSServletRequestCallbackobject with a prompt hint.WSServletRequestCallback(String prompt, jakarta.servlet.http.HttpServletRequest req) Construct aWSServletRequestCallbackobject with a prompt hint and an HttpServletRequest instance. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequestReturn the HttpServletRequest.Return the prompt.voidsetHttpServletRequest(jakarta.servlet.http.HttpServletRequest req) Set the HttpServletRequest instance.toString()Returns the name of the Callback.
-
Constructor Details
-
WSServletRequestCallback
Construct a
WSServletRequestCallbackobject with a prompt hint.- Parameters:
prompt- The prompt hint.
-
WSServletRequestCallback
Construct a
WSServletRequestCallbackobject 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, thennullis returned.- Returns:
- The HttpServletRequest, 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.
-