[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security/config ...
Shane Bryzak
Shane_Bryzak at symantec.com
Mon Jul 31 22:04:54 EDT 2006
User: sbryzak2
Date: 06/07/31 22:04:54
Modified: src/main/org/jboss/seam/security/config SecurityConfig.java
Log:
Security stuff.. integrated JBoss authentication now works
Revision Changes Path
1.6 +8 -17 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.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- SecurityConfig.java 31 Jul 2006 06:45:50 -0000 1.5
+++ SecurityConfig.java 1 Aug 2006 02:04:54 -0000 1.6
@@ -2,7 +2,7 @@
import java.util.Collections;
import java.util.Set;
-import javax.servlet.ServletContext;
+import org.jboss.seam.contexts.Context;
/**
* Security Configuration interface.
@@ -37,15 +37,10 @@
private Set<String> securityRoles;
/**
- * Authentication realm
+ * The ApplicationContext for this application. This is required by various
+ * modules of the security framework.
*/
-// private Realm realm;
-
- /**
- * 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 Context applicationContext;
/**
* Private constructor.
@@ -76,11 +71,7 @@
{
securityConstraints = configLoader.getSecurityConstraints();
authMethod = configLoader.getAuthMethod();
-
-// authenticator = configLoader.getAuthenticator();
-
securityRoles = configLoader.getSecurityRoles();
-
configLoaded = true;
}
}
@@ -89,18 +80,18 @@
*
* @param servletContext ServletContext
*/
- public void setServletContext(ServletContext servletContext)
+ public void setApplicationContext(Context ctx)
{
- this.servletContext = servletContext;
+ this.applicationContext = ctx;
}
/**
*
* @return ServletContext
*/
- public ServletContext getServletContext()
+ public Context getApplicationContext()
{
- return servletContext;
+ return applicationContext;
}
/**
More information about the jboss-cvs-commits
mailing list