tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization
Date Fri, 21 Oct 2005 04:25:19 GMT
> From: Brad O'Hearne [mailto:brado@neurofire.com] 
> Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt 
> object preventing proper role authorization
> 
> So in the JAAS login module, what you would have to do 
> is instantiate a user principal that is a subclass of 
> GenericPrinicipal for your user principal, then add your
> role principals to that user principal, and then add the 
> user principal and all the role principals to the subject.

No, you don't need to go through those steps yourself, since the
JAASRealm will do it for you.

> What an ugly hack though.

I guess I don't see the ugliness - that's what subclassing is for.
Would be nice if the behavior were actually documented...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message