com.ibm.wsspi.security.auth.callback

Class WSServletResponseCallback

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.auth.callback.WSServletResponseCallback
All implemented interfaces:
javax.security.auth.callback.Callback

  1. public class WSServletResponseCallback
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.Callback

The WSServletResponseCallback allows an HttpServletResponse object to be gathered by CallbackHandler and pass it to the LoginModule stack.

Since:
1.0

Constructor Summary

Constructor and Description
WSServletResponseCallback(java.lang.String prompt)
Construct a WSServletResponseCallback object with a prompt hint.
WSServletResponseCallback(java.lang.String prompt,HttpServletResponse resp)
Construct a WSServletResponseCallback object with a prompt hint and an HttpServletResponse instance.

Method Summary

Modifier and Type Method and Description
  1. HttpServletResponse
getHttpServletResponse()
Return the HttpServletResponse.
  1. java.lang.String
getPrompt()
Return the prompt.
  1. void
setHttpServletResponse(HttpServletResponse resp)
Set the HttpServletResponse instance.
  1. java.lang.String
toString()
Returns the name of the Callback.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

WSServletResponseCallback

  1. public WSServletResponseCallback( java.lang.String prompt)

Construct a WSServletResponseCallback object with a prompt hint.

Parameters:
prompt - The prompt hint.

WSServletResponseCallback

  1. public WSServletResponseCallback( java.lang.String prompt,
  2. HttpServletResponse resp)

Construct a WSServletResponseCallback object with a prompt hint and an HttpServletResponse instance.

Parameters:
prompt - The prompt hint.

Method Detail

setHttpServletResponse

  1. public void setHttpServletResponse( HttpServletResponse resp)

Set the HttpServletResponse instance.

Parameters:
resp - The HttpServletResponse object.

getHttpServletResponse

  1. public HttpServletResponse getHttpServletResponse( )

Return the HttpServletResponse. If the HttpServletResponse instance set in Constructor is null, then null is returned.

Returns:
The HttpServletResponse, could be null.

getPrompt

  1. public java.lang.String getPrompt( )

Return the prompt. If the prompt set in Constructor is null, then null is returned.

Returns:
The prompt, could be null.

toString

  1. public java.lang.String toString( )

Returns the name of the Callback. Typically, it is the name of the class.

Overrides:
toString in class java.lang.Object
Returns:
The name of the Callback.