Class WSAppContextCallback
java.lang.Object
com.ibm.wsspi.security.auth.callback.WSAppContextCallback
- All Implemented Interfaces:
- Callback
 The WSAppContextCallback allows an Context object to be gathered by
 CallbackHandler and pass it to the LoginModule stack.
 
- Since:
- 1.0
- 
Constructor SummaryConstructorsConstructorDescriptionWSAppContextCallback(String prompt) Construct aWSAppContextCallbackobject with a prompt hint.WSAppContextCallback(String prompt, Map context) Construct aWSAppContextCallbackobject with a prompt hint and an Context instance.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the Context.Return the prompt.voidsetContext(Map context) Set the application context.toString()Returns the name of the Callback.
- 
Constructor Details- 
WSAppContextCallbackConstruct a WSAppContextCallbackobject with a prompt hint.- Parameters:
- prompt- The prompt hint.
 
- 
WSAppContextCallbackConstruct a WSAppContextCallbackobject with a prompt hint and an Context instance.- Parameters:
- prompt- The prompt hint.
- Context- context
 
 
- 
- 
Method Details- 
setContextSet the application context. - Parameters:
- context- : The application context.
 
- 
getContextReturn the Context. If the Context instance set in Constructor is null, thennullis returned.- Returns:
- The Context, could be null.
 
- 
getPromptReturn the prompt. If the prompt set in Constructor is null, thennullis returned.- Returns:
- The prompt, could be null.
 
- 
toStringReturns the name of the Callback. Typically, it is the name of the class. 
 
-