com.ibm.wsspi.security.auth.callback

Class WSMappingCallbackHandler

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.auth.callback.WSMappingCallbackHandler
All implemented interfaces:
javax.security.auth.callback.CallbackHandler

  1. public class WSMappingCallbackHandler
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.CallbackHandler

The WSMappingCallbackHandler returns either (i) a Hashmap callback and a reference of a ManagedConnectionFactory or (ii) an alias callback and a reference of a ManagedConnectionFactory, depending on the callback types.

Since:
WebSphere V 6.0
Version:
WebSphere V 6.0

Constructor Summary

Constructor and Description
WSMappingCallbackHandler(java.util.Map properties,javax.resource.spi.ManagedConnectionFactory mcf)
Construct a WSMappingCallbackHandler object with a resource reference binding properties and the correcponding authentication data and the target ManagedConnectionFactory.

Method Summary

Modifier and Type Method and Description
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
Return either a properties object and a reference of the target ManagedConnectionFactory via Callback[], or an alias of authentication data and a reference of the target.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

WSMappingCallbackHandler

  1. public WSMappingCallbackHandler( java.util.Map properties,
  2. javax.resource.spi.ManagedConnectionFactory mcf)

Construct a WSMappingCallbackHandler object with a resource reference binding properties and the correcponding authentication data and the target ManagedConnectionFactory.

Method Detail

handle

  1. public void handle(javax.security.auth.callback.Callback[] callbacks)
  2. throws javax.security.auth.callback.UnsupportedCallbackException

Return either a properties object and a reference of the target ManagedConnectionFactory via Callback[], or an alias of authentication data and a reference of the target. ManagedConnectionFactory via Callback[], depending on the passed in Callback[].

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
javax.security.auth.callback.UnsupportedCallbackException