Skip to main content

Callbackhandler

2 replies [Last post]
d039113
Offline
Joined: 2007-01-11
Points: 0

Hi,

I like using the default callbackhandler for resolving truststores and signing keys, but I'd like to provide a different callbackhandler for creating SAML assertions in my coding.

I'm aware of the options of specifying the callback handler in the configuration files, but as my application needs to pass over data, my preferred way is instantiating the callbackhandler in my code and passing it over to the binding using the CallbackHandlerFeature.
When using the CallbackHandlerFeature I noticed my callbackhandler needs to handle all callbacks, not only the SAML callbacks.

Question: How can I handle the SAML callback and for other callbacks deletgate to the DefaultCallbackHandler?

Regards,

Martijn

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kumar Jayanti

metro@javadesktop.org wrote:
> Hi,
>
> I like using the default callbackhandler for resolving truststores and signing keys, but I'd like to provide a different callbackhandler for creating SAML assertions in my coding.
>
> I'm aware of the options of specifying the callback handler in the configuration files, but as my application needs to pass over data, my preferred way is instantiating the callbackhandler in my code and passing it over to the binding using the CallbackHandlerFeature.
> When using the CallbackHandlerFeature I noticed my callbackhandler needs to handle all callbacks, not only the SAML callbacks.
>
> Question: How can I handle the SAML callback and for other callbacks deletgate to the DefaultCallbackHandler?
>
Support for specifying configuration as feature is planned for a future
release, so, right now there is no way for you to delegate to
DefaultCallbackHandler, since the instance of DefaultCallbackHandler is
not created at all when you use the CallbackHandlerFeature.

However based on your scenario (what policies are present) you need only
handle a subset of all the callbacks. Does that not work for you. See
this for a starting point, incase you have not already seen this :

https://jax-ws-commons.dev.java.net/source/browse/jax-ws-commons/trunk/e...

Thanks.
> Regards,
>
> Martijn
> [Message sent by forum member 'd039113']
>
> http://forums.java.net/jive/thread.jspa?messageID=393678
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

d039113
Offline
Joined: 2007-01-11
Points: 0

Thanks, I'll check this out