[ http://jira.jboss.com/jira/browse/JBAS-48?page=history ]

Nuno Meira updated JBAS-48:
---------------------------

    Attachment: JAASBugSRP.rar

Attached a file with all the source code used.

Includes:
 
 1 -Ant file (configure jboss home and xdoclet)
 2 -Verifier Store with 2 users( user:admin password=admin, user:nmeira=pwd11)
 3 -EJB to perform test
 4 -Server side login module to get the users roles
 5 -Client GUI to do the tests (com.example.srp.security.client.ClientJFrame)
 6 -Configuration files (folder conf)



> SRP: Mulitple Clients
> ---------------------
>
>          Key: JBAS-48
>          URL: http://jira.jboss.com/jira/browse/JBAS-48
>      Project: JBoss Application Server
>         Type: Bug
>   Components: Security
>     Versions: JBossAS-4.0.0 Final, JBossAS-3.2.6 Final
>  Environment: Any
>     Reporter: Nuno Meira
>     Assignee: Scott M Stark
>      Fix For: JBossAS-4.0.1 Final,  JBossAS-3.2.7 Final
>  Attachments: JAASBugSRP.rar
>
>
> This relates to this forum post:
> http://www.jboss.org/index.html?module=bb&op=viewtopic&t=57042
> The problem is in the SRPPrincipal. The equals/hashCode implementation
> only accounts for the name, it does not include the session id.
> Need to add these methods, something like:
>    public boolean equals(Object obj)
>    {
>       SRPPrincipal other = (SRPPrincipal) obj;
>       return this.getName().equals(other.getName()) && this.sessionID == 
> other.sessionID;
>    }
>    public int hashCode()
>    {
>       return this.getName().hashCode() + this.sessionID;
>    }
> Verified by [EMAIL PROTECTED] on site.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to