Class WSAppContextCallback
- java.lang.Object
- 
- com.ibm.wsspi.security.auth.callback.WSAppContextCallback
 
- 
- All Implemented Interfaces:
- javax.security.auth.callback.Callback
 
 public class WSAppContextCallback extends java.lang.Object implements javax.security.auth.callback.CallbackThe WSAppContextCallbackallows an Context object to be gathered byCallbackHandlerand pass it to theLoginModulestack.- Since:
- 1.0
 
- 
- 
Constructor SummaryConstructors Constructor Description WSAppContextCallback(java.lang.String prompt)Construct aWSAppContextCallbackobject with a prompt hint.WSAppContextCallback(java.lang.String prompt, java.util.Map context)Construct aWSAppContextCallbackobject with a prompt hint and an Context instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.MapgetContext()Return the Context.java.lang.StringgetPrompt()Return the prompt.voidsetContext(java.util.Map context)Set the application context.java.lang.StringtoString()Returns the name of the Callback.
 
- 
- 
- 
Constructor Detail- 
WSAppContextCallbackpublic WSAppContextCallback(java.lang.String prompt) Construct a WSAppContextCallbackobject with a prompt hint.- Parameters:
- prompt- The prompt hint.
 
 - 
WSAppContextCallbackpublic WSAppContextCallback(java.lang.String prompt, java.util.Map context)Construct a WSAppContextCallbackobject with a prompt hint and an Context instance.- Parameters:
- prompt- The prompt hint.
- Context- context
 
 
- 
 - 
Method Detail- 
setContextpublic void setContext(java.util.Map context) Set the application context. - Parameters:
- context- : The application context.
 
 - 
getContextpublic java.util.Map getContext() Return the Context. If the Context instance set in Constructor is null, thennullis returned.- Returns:
- The Context, could be null.
 
 - 
getPromptpublic java.lang.String getPrompt() Return the prompt. If the prompt set in Constructor is null, thennullis returned.- Returns:
- The prompt, could be null.
 
 - 
toStringpublic java.lang.String toString() Returns the name of the Callback. Typically, it is the name of the class. - Overrides:
- toStringin class- java.lang.Object
- Returns:
- The name of the Callback.
 
 
- 
 
-