geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r707715 - /geronimo/sandbox/djencks/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/JettySecurityHandler.java
Date Fri, 24 Oct 2008 18:49:19 GMT
Author: djencks
Date: Fri Oct 24 11:49:18 2008
New Revision: 707715

URL: http://svn.apache.org/viewvc?rev=707715&view=rev
Log:
GERONIMO-4360 adapt to api change

Modified:
    geronimo/sandbox/djencks/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/JettySecurityHandler.java

Modified: geronimo/sandbox/djencks/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/JettySecurityHandler.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/JettySecurityHandler.java?rev=707715&r1=707714&r2=707715&view=diff
==============================================================================
--- geronimo/sandbox/djencks/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/JettySecurityHandler.java
(original)
+++ geronimo/sandbox/djencks/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/JettySecurityHandler.java
Fri Oct 24 11:49:18 2008
@@ -69,7 +69,7 @@
         if (defaultSubject == null) {
             defaultSubject = ContextManager.EMPTY;
         }
-        default_acc = ContextManager.registerSubjectShort(defaultSubject);
+        default_acc = ContextManager.registerSubjectShort(defaultSubject, null, null);
 //        this.defaultPrincipal = generateDefaultPrincipal(defaultSubject);
 
     }
@@ -108,7 +108,7 @@
 
     protected UserIdentity newUserIdentity(ServerAuthResult serverAuthResult) {
         Subject clientSubject = serverAuthResult.getClientSubject();
-        AccessControlContext acc = ContextManager.registerSubjectShort(clientSubject);
+        AccessControlContext acc = ContextManager.registerSubjectShort(clientSubject, serverAuthResult.getUserPrincipal(),
serverAuthResult.getGroups());
         ContextManager.setCallers(clientSubject, clientSubject);
         return new GeronimoUserIdentity(serverAuthResult, acc);
     }



Mime
View raw message