[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security/config ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Jul 26 02:04:35 EDT 2006
User: sbryzak2
Date: 06/07/26 02:04:35
Modified: src/main/org/jboss/seam/security/config SecurityConfig.java
Log:
ongoing security framework stuff
Revision Changes Path
1.3 +31 -1 jboss-seam/src/main/org/jboss/seam/security/config/SecurityConfig.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SecurityConfig.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/config/SecurityConfig.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SecurityConfig.java 25 Jul 2006 06:50:19 -0000 1.2
+++ SecurityConfig.java 26 Jul 2006 06:04:35 -0000 1.3
@@ -5,6 +5,7 @@
import org.jboss.seam.security.authenticator.Authenticator;
import org.jboss.seam.security.realm.Realm;
+import javax.servlet.ServletContext;
/**
* Security Configuration interface.
@@ -18,6 +19,9 @@
*/
private static final SecurityConfig instance = new SecurityConfig();
+ /**
+ * Flag indicating whether the configuration has been loaded
+ */
private boolean configLoaded = false;
/**
@@ -46,11 +50,18 @@
private Realm realm;
/**
- * Private constructor
+ * The ServletContext for this application. This is required because various
+ * modules of the security framework may need to instantiate a Seam context
+ */
+ private ServletContext servletContext;
+
+ /**
+ * Private constructor.
*/
private SecurityConfig() { }
/**
+ * Returns the SecurityConfig singleton
*
* @return SecurityConfig
*/
@@ -60,6 +71,7 @@
}
/**
+ * Loads the configuration from the specified SecurityConfigLoader
*
* @param configLoader SecurityConfigLoader
*/
@@ -85,6 +97,24 @@
/**
*
+ * @param servletContext ServletContext
+ */
+ public void setServletContext(ServletContext servletContext)
+ {
+ this.servletContext = servletContext;
+ }
+
+ /**
+ *
+ * @return ServletContext
+ */
+ public ServletContext getServletContext()
+ {
+ return servletContext;
+ }
+
+ /**
+ *
* @return Set
*/
public Set<SecurityConstraint> getSecurityConstraints()
More information about the jboss-cvs-commits
mailing list