User: luke_t
Date: 02/04/10 20:15:24
Modified: src/main/org/jboss/security/plugins JaasSecurityManager.java
Log:
Minor simplification to if/else logic in validateCache method.
Revision Changes Path
1.24 +3 -5
jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java
Index: JaasSecurityManager.java
===================================================================
RCS file:
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- JaasSecurityManager.java 11 Apr 2002 02:56:30 -0000 1.23
+++ JaasSecurityManager.java 11 Apr 2002 03:15:24 -0000 1.24
@@ -53,7 +53,7 @@
@author <a href="[EMAIL PROTECTED]">Oleg Nitz</a>
@author [EMAIL PROTECTED]
- @version $Revision: 1.23 $
+ @version $Revision: 1.24 $
*/
public class JaasSecurityManager implements SubjectSecurityManager, RealmMapping
{
@@ -400,16 +400,14 @@
Object subjectCredential = info.credential;
boolean isValid = false;
- // Check for a null credential as can be the case for an anonymou user
+ // Check for a null credential as can be the case for an anonymous user
if( credential == null || subjectCredential == null )
{
// Both credentials must be null
isValid = (credential == null) && (subjectCredential == null);
}
// See if the credential is assignable to the cache value
- else if( subjectCredential.getClass().isAssignableFrom(credential.getClass())
== false )
- isValid = false;
- else
+ else if( subjectCredential.getClass().isAssignableFrom(credential.getClass())
)
{
/* Validate the credential by trying Comparable, char[], byte[],
and finally Object.equals()
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development