[jboss-cvs] JBossAS SVN: r68110 - trunk/tomcat/src/main/org/jboss/web/tomcat/security/login.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 10 11:09:54 EST 2007


Author: sguilhen at redhat.com
Date: 2007-12-10 11:09:54 -0500 (Mon, 10 Dec 2007)
New Revision: 68110

Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/security/login/WebAuthentication.java
Log:
JBAS-4424: Uncommented call to SingleSignOn.update method.



Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/security/login/WebAuthentication.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/security/login/WebAuthentication.java	2007-12-10 15:30:37 UTC (rev 68109)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/security/login/WebAuthentication.java	2007-12-10 16:09:54 UTC (rev 68110)
@@ -21,11 +21,8 @@
   */
 package org.jboss.web.tomcat.security.login;
 
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
 import java.security.Principal;
 import java.security.cert.X509Certificate;
-import java.util.Random;
 import java.util.UUID;
 
 import javax.naming.NamingException;
@@ -65,7 +62,7 @@
    public boolean login(X509Certificate[] certs)
    {
       //Get the active request
-      Request request = (Request) SecurityAssociationValve.activeRequest.get();
+      Request request = SecurityAssociationValve.activeRequest.get();
       if (request == null)
          throw new IllegalStateException("request is null");
       Principal p = request.getContext().getRealm().authenticate(certs);
@@ -86,7 +83,7 @@
    public boolean login(String username, Object credential)
    {
       //Get the active request
-      Request request = (Request) SecurityAssociationValve.activeRequest.get();
+      Request request = SecurityAssociationValve.activeRequest.get();
       if (request == null)
          throw new IllegalStateException("request is null");
 
@@ -113,7 +110,7 @@
    public void logout()
    {
       //Get the active request
-      Request request = (Request) SecurityAssociationValve.activeRequest.get();
+      Request request = SecurityAssociationValve.activeRequest.get();
       if (request == null)
          throw new IllegalStateException("request is null");
       unregister(request);
@@ -185,7 +182,7 @@
       else
       {
          // Update the SSO session with the latest authentication data
-         // sso.update(ssoId, principal, AUTH_TYPE, username, this.getPasswordAsString(password));
+         sso.update(ssoId, principal, AUTH_TYPE, username, this.getPasswordAsString(password));
       }
 
       // Always associate a session with a new SSO reqistration.
@@ -218,7 +215,8 @@
       }
       // Unregister the SSOID.
       SingleSignOn sso = this.getSingleSignOn(request);
-      if(sso != null) {
+      if (sso != null)
+      {
          String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE);
          sso.deregister(ssoId);
       }




More information about the jboss-cvs-commits mailing list