{
//Need to get a wrapper
ServerAuthModule sam = new DelegatingServerAuthModule();
Map options = new HashMap();
options.put("javax.security.auth.login.LoginContext", secDomain); //Name of sec domain
sam.initialize(null, null, new SecurityAssociationHandler(), options);
modules.add(sam);
}
else
{
JASPIAuthenticationInfo jai = (JASPIAuthenticationInfo)bai;