com.ibm.websphere.wssecurity.callbackhandler
Class SAMLGenerateCallbackHandler
- java.lang.Object
-
- com.ibm.websphere.wssecurity.callbackhandler.SAMLGenerateCallbackHandler
-
- All Implemented Interfaces:
- java.io.Serializable, javax.security.auth.callback.CallbackHandler
public class SAMLGenerateCallbackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
This class is a callback handler for SAMLToken in client side.- See Also:
SAMLToken
,SAMLGenerateCallback
, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SAMLGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
-
Method Summary
Methods Modifier and Type Method and Description void
handle(javax.security.auth.callback.Callback[] callbacks)
Sets the necessary information to aSAMLGenerateCallback
object.void
setWSSConsumingContextForTrustClient(WSSConsumingContext concont)
Sets WSSConsumingContext object.void
setWSSGenerationContextForTrustClient(WSSGenerationContext gencont)
Sets WSSGenerationContext object.
-
-
-
Constructor Detail
-
SAMLGenerateCallbackHandler
public SAMLGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.- Parameters:
properties
- map including key-value pairs
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
Sets the necessary information to aSAMLGenerateCallback
object.- Specified by:
handle
in interfacejavax.security.auth.callback.CallbackHandler
- Parameters:
callbacks
- array ofCallback
objects provided by the underlying security service which contains the information requested to be retrieved or displayed.- Throws:
java.io.IOException
- if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException
- if the implementation of this method does not support one or more of theCallback
s specified in the callbacks parameter.- See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])
-
setWSSConsumingContextForTrustClient
public void setWSSConsumingContextForTrustClient(WSSConsumingContext concont)
Sets WSSConsumingContext object.- Parameters:
concont
- WSSConsumingContext object
-
setWSSGenerationContextForTrustClient
public void setWSSGenerationContextForTrustClient(WSSGenerationContext gencont)
Sets WSSGenerationContext object.- Parameters:
gencont
- WSSGenerationContext object
-
-