geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r599018 - in /geronimo/server: branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/
Date Wed, 28 Nov 2007 14:59:33 GMT
Author: vamsic007
Date: Wed Nov 28 06:59:33 2007
New Revision: 599018

URL: http://svn.apache.org/viewvc?rev=599018&view=rev
Log:
Should use getPrivateCredentials() without a param to remove the credential from the subject.
 The other method will return a new set populated with the principals but not the private
credentials member of the subject.

Modified:
    geronimo/server/branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
    geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java

Modified: geronimo/server/branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java?rev=599018&r1=599017&r2=599018&view=diff
==============================================================================
--- geronimo/server/branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
(original)
+++ geronimo/server/branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
Wed Nov 28 06:59:33 2007
@@ -80,7 +80,7 @@
             return false;
         }
 
-        Set pvtCreds = subject.getPrivateCredentials(UsernamePasswordCredential.class);
+        Set pvtCreds = subject.getPrivateCredentials();
         if (pvtCreds.contains(namedUsernamePasswordCredential)) {
             pvtCreds.remove(namedUsernamePasswordCredential);
         }

Modified: geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java?rev=599018&r1=599017&r2=599018&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jaas/ConfiguredIdentityNamedUsernamePasswordLoginModule.java
Wed Nov 28 06:59:33 2007
@@ -80,7 +80,7 @@
             return false;
         }
 
-        Set pvtCreds = subject.getPrivateCredentials(UsernamePasswordCredential.class);
+        Set pvtCreds = subject.getPrivateCredentials();
         if (pvtCreds.contains(namedUsernamePasswordCredential)) {
             pvtCreds.remove(namedUsernamePasswordCredential);
         }



Mime
View raw message