cklein05 commented on pull request #420:
URL: https://github.com/apache/tomcat/pull/420#issuecomment-852735518


   For me, it's not about removing UserDatabaseRealm's live role querying 
feature. It's just that I need a way to deal with the UserDatabasePrincipal in 
my enhancement. Removing this class is the simplest solution among others. A 
simple (default visible) boolean flag `userDatabasePrincipal` in 
GenericPrincipal will do the job as well (so that the UserDatabaseRealm can 
simply check that boolean value instead of the `instanceof 
UserDatabasePrincipal` test in line 144). 
   
   However, extending GenericPrincipal is another option that's as good as the 
other (maybe it's the more clean solution from an OOP point of view). I agree 
with any of these options, since in then end (in both ends) I don't have to 
touch that class anymore when implementing my enhancement.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to