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