public class WSProtocolPolicyCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSProtocolPolicyCallback allows a protocol policy object
to be gathered by CallbackHandler and pass it to the LoginModule
stack. This is used by wsSAPOutboundLoginModule to make mapping decisions
and authorization token decisions.
CallbackHandler,
WSCallbackHandlerImpl| Constructor and Description |
|---|
WSProtocolPolicyCallback(java.lang.String prompt)
Construct a
WSProtocolPolicyCallback object with a prompt hint. |
WSProtocolPolicyCallback(java.lang.String prompt,
java.lang.Object policy)
Construct a
WSProtocolPolicyCallback object with a prompt hint and
a List instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPrompt()
Return the prompt.
|
java.lang.Object |
getProtocolPolicy()
Return the protocol policy object.
|
void |
setProtocolPolicy(java.lang.Object policy)
Set the CSIv2PerformPolicy object
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSProtocolPolicyCallback(java.lang.String prompt)
Construct a WSProtocolPolicyCallback object with a prompt hint.
prompt - The prompt hint.public WSProtocolPolicyCallback(java.lang.String prompt,
java.lang.Object policy)
Construct a WSProtocolPolicyCallback object with a prompt hint and
a List instance.
prompt - The prompt hint.List - listpublic void setProtocolPolicy(java.lang.Object policy)
Set the CSIv2PerformPolicy object
policy - Objectpublic java.lang.Object getProtocolPolicy()
Return the protocol policy object. If the object 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