sam.initialize(null, null, callbackHandler, options);
modules.add(sam);
}
catch (Exception e)
{
throw new AuthException(e.getLocalizedMessage());
}
}
else
{
try
{
mapOptionsByName.put(ame.getAuthModuleName(), ame.getOptions());
controlFlags.add(ame.getControlFlag());
ServerAuthModule sam = this.createSAM(ame.getAuthModuleName());
Map options = new HashMap();
sam.initialize(null, null, callbackHandler, options);
modules.add(sam);
}
catch (Exception e)
{
throw new AuthException(e.getLocalizedMessage());
}
}
}
}