*
* @param mechanismName
*/
public AuthorizingCallbackHandler getCallbackHandler(final String mechanismName, final Map<String, String> mechanismProperties) {
return new AuthorizingCallbackHandler() {
Subject subject = new Subject();
Principal userPrincipal;
public void handle(final Callback[] callbacks) throws IOException, UnsupportedCallbackException {
String userName = null;