geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r154815 - geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityServiceImpl.java
Date Tue, 22 Feb 2005 07:24:02 GMT
Author: jgenender
Date: Mon Feb 21 23:24:00 2005
New Revision: 154815

URL: http://svn.apache.org/viewcvs?view=rev&rev=154815
Log:
Added policy.refresh() after instantiation of the policy

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=154814&r2=154815
==============================================================================
--- 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 23:24:00 2005
@@ -79,10 +79,14 @@
             if (policyProvider != null) {
                 System.setProperty("javax.security.jacc.policy.provider", policyProvider);
                 Policy customPolicy = (Policy) classLoader.loadClass(policyProvider).newInstance();
+                customPolicy.refresh();
                 Policy.setPolicy(customPolicy);
             } else {
-                Policy.setPolicy(new GeronimoPolicy());
+                Policy gPolicy = new GeronimoPolicy();
+                gPolicy.refresh();
+                Policy.setPolicy(gPolicy);
             }
+
             POLICY_INSTALLED = true;
         }
 



Mime
View raw message