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 SummaryConstructorsConstructorDescriptionWSServletRequestCallback(String prompt) Construct aWSServletRequestCallbackobject with a prompt hint.WSServletRequestCallback(String prompt, javax.servlet.http.HttpServletRequest req) Construct aWSServletRequestCallbackobject with a prompt hint and an HttpServletRequest instance.
- 
Method SummaryModifier and TypeMethodDescriptionjavax.servlet.http.HttpServletRequestReturn the HttpServletRequest.Return the prompt.voidsetHttpServletRequest(javax.servlet.http.HttpServletRequest req) Set the HttpServletRequest instance.toString()Returns the name of the Callback.
- 
Constructor Details- 
WSServletRequestCallbackConstruct a WSServletRequestCallbackobject with a prompt hint.- Parameters:
- prompt- The prompt hint.
 
- 
WSServletRequestCallbackConstruct a WSServletRequestCallbackobject with a prompt hint and an HttpServletRequest instance.- Parameters:
- prompt- The prompt hint.
- HttpServletRequest- req
 
 
- 
- 
Method Details- 
setHttpServletRequestpublic void setHttpServletRequest(javax.servlet.http.HttpServletRequest req) Set the HttpServletRequest instance. - Parameters:
- req- The HttpServletRequest object.
 
- 
getHttpServletRequestpublic javax.servlet.http.HttpServletRequest getHttpServletRequest()Return the HttpServletRequest. If the HttpServletRequest instance set in Constructor is null, thennullis returned.- Returns:
- The HttpServletRequest, could be null.
 
- 
getPromptReturn the prompt. If the prompt set in Constructor is null, thennullis returned.- Returns:
- The prompt, could be null.
 
- 
toStringReturns the name of the Callback. Typically, it is the name of the class. 
 
-