Hi,

>But hasRole(Principal principal, String role) method contains only the
>principal and the role.
>
>I have two questions : Is that tomcat Realm interface will evolve to
add
>an argument to hasRole() method in order to know the current
servlet-name ?
>I think that Remy will answer me that this is another hack.

Remy or someone else ;)

>So my next question is : Is there an easy way to know the current
>servlet name in a realm ? (in hasRole() method).

No, there's no easy way.  Keep in mind that the resource being
authenticated might not be a servlet at all: it could be a filter, for
example.  How would your realm handle that?

What is your Principal implementation class, and does it contain methods
to help in this scenario?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to