String pwdFileName = env.getSecurityPasswordsFilePath();
File pwdFile = new File(pwdFileName);
if(pwdFile.exists())
return null;
//now test the security attribute in init.conf file in "live" directory
InitConfFileBean conf = new InitConfFileBean();
conf.initialise(mInstanceName, false);
String security = conf.get_mag_var(InitConfFileBean.INITCONF_SECURITY_ATTRIBUTE);
if(security.equalsIgnoreCase(InitConfFileBean.INITCONF_VALUE_ON))
{
InstanceDefinition instance = new InstanceDefinition(mInstanceName,
mHostAndPort.getPort());
return ServerManager.instance().getSecurityTokensForInstance(instance);