if( args[0] instanceof String )
name = parser.parse((String) args[0]);
else
name = (Name)args[0];
securityDomain = name.get(0);
SecurityDomainContext val = (SecurityDomainContext)args[1];
JNDIBasedSecurityManagement.securityMgrMap.put(securityDomain, val);
return obj;
}
if( methodName.equals("lookup") == false )
throw new OperationNotSupportedException("Only lookup is supported, op="+method);
if( args[0] instanceof String )
name = parser.parse((String) args[0]);
else
name = (Name)args[0];
securityDomain = name.get(0);
SecurityDomainContext securityDomainCtx = lookupSecurityDomain(securityDomain);
//TODO: Legacy expectation was subjectsecuritymgr
Object binding = securityDomainCtx.getSecurityManager();
// Look for requests against the security domain context
if( name.size() == 2 )
{
String request = name.get(1);
binding = securityDomainCtx.lookup(request);
}
return binding;
}