FELIX-5083 - Set webconsole.configurationFactory.nameHint for JAAS configurations
Applying patch from Robert Munteanu. Thanks!
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1717190 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/jaas/src/main/java/org/apache/felix/jaas/internal/JaasConfigFactory.java b/jaas/src/main/java/org/apache/felix/jaas/internal/JaasConfigFactory.java
index ec63d49..f082d27 100644
--- a/jaas/src/main/java/org/apache/felix/jaas/internal/JaasConfigFactory.java
+++ b/jaas/src/main/java/org/apache/felix/jaas/internal/JaasConfigFactory.java
@@ -19,8 +19,6 @@
package org.apache.felix.jaas.internal;
-import static org.apache.felix.jaas.internal.Util.trimToNull;
-
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.HashMap;
@@ -43,6 +41,8 @@
import org.osgi.service.cm.ManagedServiceFactory;
import org.osgi.service.log.LogService;
+import static org.apache.felix.jaas.internal.Util.trimToNull;
+
@Component(label = "%jaas.name",
description = "%jaas.description",
metatype = true,
@@ -57,7 +57,10 @@
@PropertyOption(name = "optional", value = "%jaas.flag.optional")
}),
@Property(name = LoginModuleFactory.JAAS_RANKING, intValue = 0),
- @Property(name = LoginModuleFactory.JAAS_REALM_NAME)
+ @Property(name = LoginModuleFactory.JAAS_REALM_NAME),
+ @Property(name = "webconsole.configurationFactory.nameHint",
+ value = "{" + LoginModuleFactory.JAAS_RANKING + "} : {" + JaasConfigFactory.JAAS_CLASS_NAME + "}"
+ + " ({" + LoginModuleFactory.JAAS_CONTROL_FLAG + "})")
})
public class JaasConfigFactory implements ManagedServiceFactory
{