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 Summary
ConstructorDescriptionWSAppContextCallback
(String prompt) Construct aWSAppContextCallback
object with a prompt hint.WSAppContextCallback
(String prompt, Map context) Construct aWSAppContextCallback
object with a prompt hint and an Context instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the Context.Return the prompt.void
setContext
(Map context) Set the application context.toString()
Returns the name of the Callback.
-
Constructor Details
-
WSAppContextCallback
Construct a
WSAppContextCallback
object with a prompt hint.- Parameters:
prompt
- The prompt hint.
-
WSAppContextCallback
Construct a
WSAppContextCallback
object with a prompt hint and an Context instance.- Parameters:
prompt
- The prompt hint.Context
- context
-
-
Method Details
-
setContext
Set the application context.
- Parameters:
context
- : The application context.
-
getContext
Return the Context. If the Context instance set in Constructor is
null
, thennull
is returned.- Returns:
- The Context, could be
null
.
-
getPrompt
Return the prompt. If the prompt set in Constructor is
null
, thennull
is returned.- Returns:
- The prompt, could be
null
.
-
toString
Returns the name of the Callback. Typically, it is the name of the class.
-