+ "pa.txt");
if ((cache == null) || (!cache.isFile() && !cache.createNewFile()))
{
throw new IOException("Can't create cache file");
}
pai = new PermissionAdminImpl(permissions, new PropertiesCache(
cache, tmp, action));
}
ConditionalPermissionAdminImpl cpai = null;
if ("TRUE".equalsIgnoreCase(getProperty(context,
SecurityConstants.ENABLE_CONDPERMADMIN_PROP,
SecurityConstants.ENABLE_CONDPERMADMIN_VALUE)))
{
File cpaCache = context.getDataFile("security" + File.separator
+ "cpa.txt");
if ((cpaCache == null)
|| (!cpaCache.isFile() && !cpaCache.createNewFile()))
{
throw new IOException("Can't create cache file");
}
LocalPermissions localPermissions = new LocalPermissions(
permissions);
cpai = new ConditionalPermissionAdminImpl(permissions,
new Conditions(action), localPermissions, new PropertiesCache(
cpaCache, tmp, action), pai);
}
if ((pai != null) || (cpai != null))
{