geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r154753 - geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java
Date Tue, 22 Feb 2005 01:15:22 GMT
Author: jgenender
Date: Mon Feb 21 17:15:21 2005
New Revision: 154753

URL: http://svn.apache.org/viewcvs?view=rev&rev=154753
Log:
Allow to use javax.security.jacc.PolicyConfigurationFactory.provider as factory override

Modified:
    geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java

Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java?view=diff&r1=154752&r2=154753
==============================================================================
--- geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java
(original)
+++ geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java
Mon Feb 21 17:15:21 2005
@@ -55,12 +55,18 @@
         ConfigurationUtil.registerPolicyContextHandler(new PolicyContextHandlerSOAPMessage(),
true);
         ConfigurationUtil.registerPolicyContextHandler(new PolicyContextHandlerHttpServletRequest(),
true);
 
+        /**
+         * javax.security.jacc.PolicyConfigurationFactory.provider gets preference over policyConfigurationFactory
+         */
+        String sysFactory = System.getProperty("javax.security.jacc.PolicyConfigurationFactory.provider");
+        if (sysFactory != null)
+            policyConfigurationFactory = sysFactory;
         if (policyConfigurationFactory != null) {
             System.setProperty("javax.security.jacc.PolicyConfigurationFactory.provider",
policyConfigurationFactory);
         }
 
         /**
-         * javax.security.jacc.policy.provider get preference over policyProvider
+         * javax.security.jacc.policy.provider gets preference over policyProvider
          */
         String sysProvider = System.getProperty("javax.security.jacc.policy.provider");
         if (sysProvider != null)



Mime
View raw message