[jboss-cvs] JBossAS SVN: r57797 - projects/security/trunk/src/main/org/jboss/security/plugins
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 24 12:44:56 EDT 2006
Author: anil.saldhana at jboss.com
Date: 2006-10-24 12:44:55 -0400 (Tue, 24 Oct 2006)
New Revision: 57797
Modified:
projects/security/trunk/src/main/org/jboss/security/plugins/SubjectActions.java
Log:
Provide flag to indicate refresh of security context roles
Modified: projects/security/trunk/src/main/org/jboss/security/plugins/SubjectActions.java
===================================================================
--- projects/security/trunk/src/main/org/jboss/security/plugins/SubjectActions.java 2006-10-24 16:44:14 UTC (rev 57796)
+++ projects/security/trunk/src/main/org/jboss/security/plugins/SubjectActions.java 2006-10-24 16:44:55 UTC (rev 57797)
@@ -392,4 +392,24 @@
SetSecurityContextAction action = new SetSecurityContextAction(sc,securityDomain);
AccessController.doPrivileged(action);
}
+
+ /**
+ * Indicates whether the user has requested a refresh of the security context roles
+ * via a system property ("jbosssx.context.roles.refresh") which is either "true"
+ * or "false". default is "false"
+ * TODO: Externalize this system property setting such that it is passed as a map of
+ * options on the AuthorizationManagerService to be passed to AuthorizationManagers via
+ * the optional setOptions(Properties props) method
+ * @return
+ */
+ static String getRefreshSecurityContextRoles()
+ {
+ return (String)AccessController.doPrivileged(new PrivilegedAction()
+ {
+ public Object run()
+ {
+ return System.getProperty("jbosssx.context.roles.refresh","false");
+ }}
+ );
+ }
}
More information about the jboss-cvs-commits
mailing list