public class WSAppContextCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSAppContextCallback
allows an Context object to be gathered by
CallbackHandler
and pass it to the LoginModule
stack. This
is used by PreAuthenLoginModule
and AuthenLoginModule
.
CallbackHandler
,
WSCallbackHandlerImpl
Constructor and Description |
---|
WSAppContextCallback(java.lang.String prompt)
Construct a
WSAppContextCallback object with a prompt hint. |
WSAppContextCallback(java.lang.String prompt,
java.util.Map context)
Construct a
WSAppContextCallback object with a prompt hint and
an Context instance. |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getContext()
Return the Context.
|
java.lang.String |
getPrompt()
Return the prompt.
|
void |
setContext(java.util.Map context)
Set the application context.
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSAppContextCallback(java.lang.String prompt)
Construct a WSAppContextCallback
object with a prompt hint.
prompt
- The prompt hint.public WSAppContextCallback(java.lang.String prompt, java.util.Map context)
Construct a WSAppContextCallback
object with a prompt hint and
an Context instance.
prompt
- The prompt hint.Context
- contextpublic void setContext(java.util.Map context)
Set the application context.
context:
- The application context.public java.util.Map getContext()
Return the Context. If the Context 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