com.ibm.wsspi.security.auth.callback
Class WSProtocolPolicyCallback
- java.lang.Object
com.ibm.wsspi.security.auth.callback.WSProtocolPolicyCallback
All implemented interfaces:
javax.security.auth.callback.Callback
- 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.
Since:
1.0
Version:
1.0
See Also:
CallbackHandler
,
WSCallbackHandlerImpl
Constructor Summary
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.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getPrompt()
Return the prompt.
|
|
getProtocolPolicy()
Return the protocol policy object.
|
|
setProtocolPolicy(java.lang.Object policy)
Set the CSIv2PerformPolicy object
|
|
toString()
Returns the name of the Callback.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
WSProtocolPolicyCallback
- public WSProtocolPolicyCallback( java.lang.String prompt)
Parameters:
prompt
- The prompt hint. WSProtocolPolicyCallback
- public WSProtocolPolicyCallback( java.lang.String prompt,
- java.lang.Object policy)
Construct a WSProtocolPolicyCallback
object with a prompt hint and
a List instance.
Parameters:
prompt
- The prompt hint. Method Detail
setProtocolPolicy
- public void setProtocolPolicy(java.lang.Object policy)
Set the CSIv2PerformPolicy object
Parameters:
policy
- Object getProtocolPolicy
- public java.lang.Object getProtocolPolicy( )
Return the protocol policy object. If the object instance set in
Constructor is null
, then null
is returned.
Returns:
The object, could be
null
. getPrompt
- public java.lang.String getPrompt( )
Return the prompt. If the prompt set in Constructor
is null
, then null
is returned.
Returns:
The prompt, could be
null
. toString
- public java.lang.String toString( )
Returns the name of the Callback. Typically, it is the name of the class.
Overrides:
toString
in class java.lang.Object
Returns:
The name of the Callback.
Construct a
WSProtocolPolicyCallback
object with a prompt hint.