* The returned AuthorizingCallbackHandler is used for a single authentication request - this means that state can be
* shared to combine the authentication step and the loading of authorization data.
*/
final CallbackHandlerService handlerService = getCallbackHandlerService(mechanism);
final Map<String, Object> sharedState = new HashMap<String, Object>();
return new AuthorizingCallbackHandler() {
CallbackHandler handler = handlerService.getCallbackHandler(sharedState);
Map<String, String> options = handlerService.getConfigurationOptions();
final boolean subjectCallbackSupported;
{