Simplify authentication
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / KernelUtils.java
index c1e20892456fd26792956f3ce2532a3ddce9738c..28eb526952934937e075fe19fec6e4242c7eceb4 100644 (file)
@@ -16,6 +16,8 @@ import javax.servlet.http.HttpServletRequest;
 import org.apache.commons.logging.Log;
 import org.argeo.cms.CmsException;
 import org.argeo.cms.auth.AuthConstants;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.Constants;
 
 /** Package utilities */
 class KernelUtils implements KernelConstants {
@@ -128,6 +130,19 @@ class KernelUtils implements KernelConstants {
                }
        }
 
+       static void logFrameworkProperties(Log log) {
+               BundleContext bc = Activator.getBundleContext();
+               String[] keys = { Constants.FRAMEWORK_STORAGE,
+                               Constants.FRAMEWORK_OS_NAME, Constants.FRAMEWORK_OS_VERSION,
+                               Constants.FRAMEWORK_PROCESSOR, Constants.FRAMEWORK_SECURITY,
+                               Constants.FRAMEWORK_TRUST_REPOSITORIES,
+                               Constants.FRAMEWORK_WINDOWSYSTEM, Constants.FRAMEWORK_VENDOR,
+                               Constants.FRAMEWORK_VERSION, Constants.FRAMEWORK_STORAGE_CLEAN,
+                               Constants.FRAMEWORK_LANGUAGE, Constants.FRAMEWORK_UUID };
+               for (String key : keys)
+                       log.debug(key + "=" + bc.getProperty(key));
+       }
+
        private KernelUtils() {
 
        }