Class WSServletRequestCallback
- java.lang.Object
- 
- com.ibm.wsspi.security.auth.callback.WSServletRequestCallback
 
- 
- All Implemented Interfaces:
- javax.security.auth.callback.Callback
 
 public class WSServletRequestCallback extends java.lang.Object implements javax.security.auth.callback.CallbackThe WSServletRequestCallbackallows an HttpServletRequest object to be gathered byCallbackHandlerand pass it to theLoginModulestack.- Since:
- 1.0
 
- 
- 
Constructor SummaryConstructors Constructor Description WSServletRequestCallback(java.lang.String prompt)Construct aWSServletRequestCallbackobject with a prompt hint.WSServletRequestCallback(java.lang.String prompt, javax.servlet.http.HttpServletRequest req)Construct aWSServletRequestCallbackobject with a prompt hint and an HttpServletRequest instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequestgetHttpServletRequest()Return the HttpServletRequest.java.lang.StringgetPrompt()Return the prompt.voidsetHttpServletRequest(javax.servlet.http.HttpServletRequest req)Set the HttpServletRequest instance.java.lang.StringtoString()Returns the name of the Callback.
 
- 
- 
- 
Constructor Detail- 
WSServletRequestCallbackpublic WSServletRequestCallback(java.lang.String prompt) Construct a WSServletRequestCallbackobject with a prompt hint.- Parameters:
- prompt- The prompt hint.
 
 - 
WSServletRequestCallbackpublic WSServletRequestCallback(java.lang.String prompt, javax.servlet.http.HttpServletRequest req)Construct a WSServletRequestCallbackobject with a prompt hint and an HttpServletRequest instance.- Parameters:
- prompt- The prompt hint.
- HttpServletRequest- req
 
 
- 
 - 
Method Detail- 
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.
 
 - 
getPromptpublic java.lang.String getPrompt() Return the prompt. If the prompt set in Constructor is null, thennullis returned.- Returns:
- The prompt, could be null.
 
 - 
toStringpublic java.lang.String toString() Returns the name of the Callback. Typically, it is the name of the class. - Overrides:
- toStringin class- java.lang.Object
- Returns:
- The name of the Callback.
 
 
- 
 
-