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.Callback
The
WSServletRequestCallback
allows an HttpServletRequest object to be gathered byCallbackHandler
and pass it to theLoginModule
stack.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description WSServletRequestCallback(java.lang.String prompt)
Construct aWSServletRequestCallback
object with a prompt hint.WSServletRequestCallback(java.lang.String prompt, jakarta.servlet.http.HttpServletRequest req)
Construct aWSServletRequestCallback
object with a prompt hint and an HttpServletRequest instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.servlet.http.HttpServletRequest
getHttpServletRequest()
Return the HttpServletRequest.java.lang.String
getPrompt()
Return the prompt.void
setHttpServletRequest(jakarta.servlet.http.HttpServletRequest req)
Set the HttpServletRequest instance.java.lang.String
toString()
Returns the name of the Callback.
-
-
-
Constructor Detail
-
WSServletRequestCallback
public WSServletRequestCallback(java.lang.String prompt)
Construct a
WSServletRequestCallback
object with a prompt hint.- Parameters:
prompt
- The prompt hint.
-
WSServletRequestCallback
public WSServletRequestCallback(java.lang.String prompt, jakarta.servlet.http.HttpServletRequest req)
Construct a
WSServletRequestCallback
object with a prompt hint and an HttpServletRequest instance.- Parameters:
prompt
- The prompt hint.HttpServletRequest
- req
-
-
Method Detail
-
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
public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor is
null
, thennull
is returned.- Returns:
- The prompt, could be
null
.
-
toString
public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The name of the Callback.
-
-