public class WSMappingCallbackHandler
extends java.lang.Object
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.
| 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. |
| Modifier and Type | Method and Description |
|---|---|
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. |
public 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.
public void handle(javax.security.auth.callback.Callback[] callbacks)
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[].
handle in interface javax.security.auth.callback.CallbackHandlerjavax.security.auth.callback.UnsupportedCallbackException