public class WSServletRequestCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSServletRequestCallback
allows an HttpServletRequest object to be gathered by
CallbackHandler
and pass it to the LoginModule
stack. This
is used by PreAuthenLoginModule
and AuthenLoginModule
.
CallbackHandler
,
WSCallbackHandlerImpl
Constructor and Description |
---|
WSServletRequestCallback(java.lang.String prompt)
Construct a
WSServletRequestCallback object with a prompt hint. |
WSServletRequestCallback(java.lang.String prompt,
javax.servlet.http.HttpServletRequest req)
Construct a
WSServletRequestCallback object with a prompt hint and
an HttpServletRequest instance. |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Return the HttpServletRequest.
|
java.lang.String |
getPrompt()
Return the prompt.
|
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest req)
Set the HttpServletRequest instance.
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSServletRequestCallback(java.lang.String prompt)
Construct a WSServletRequestCallback
object with a prompt hint.
prompt
- The prompt hint.public WSServletRequestCallback(java.lang.String prompt, javax.servlet.http.HttpServletRequest req)
Construct a WSServletRequestCallback
object with a prompt hint and
an HttpServletRequest instance.
prompt
- The prompt hint.HttpServletRequest
- reqpublic void setHttpServletRequest(javax.servlet.http.HttpServletRequest req)
Set the HttpServletRequest instance.
req
- The HttpServletRequest object.public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Return the HttpServletRequest. If the HttpServletRequest instance set in
Constructor is null
, then null
is returned.
null
.public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor
is null
, then null
is returned.
null
.public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
toString
in class java.lang.Object