public class WSServletResponseCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSServletResponseCallback
allows an HttpServletResponse object to be gathered by
CallbackHandler
and pass it to the LoginModule
stack. This
is used by PreAuthenLoginModule
and AuthenLoginModuleImpl
.
CallbackHandler
,
WSCallbackHandlerImpl
Constructor and Description |
---|
WSServletResponseCallback(java.lang.String prompt)
Construct a
WSServletResponseCallback object with a prompt hint. |
WSServletResponseCallback(java.lang.String prompt,
javax.servlet.http.HttpServletResponse resp)
Construct a
WSServletResponseCallback object with a prompt hint and
an HttpServletResponse instance. |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Return the HttpServletResponse.
|
java.lang.String |
getPrompt()
Return the prompt.
|
void |
setHttpServletResponse(javax.servlet.http.HttpServletResponse resp)
Set the HttpServletResponse instance.
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSServletResponseCallback(java.lang.String prompt)
Construct a WSServletResponseCallback
object with a prompt hint.
prompt
- The prompt hint.public WSServletResponseCallback(java.lang.String prompt, javax.servlet.http.HttpServletResponse resp)
Construct a WSServletResponseCallback
object with a prompt hint and
an HttpServletResponse instance.
prompt
- The prompt hint.HttpServletResponse
- resppublic void setHttpServletResponse(javax.servlet.http.HttpServletResponse resp)
Set the HttpServletResponse instance.
resp
- The HttpServletResponse object.public javax.servlet.http.HttpServletResponse getHttpServletResponse()
Return the HttpServletResponse. If the HttpServletResponse 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