https://issues.apache.org/bugzilla/show_bug.cgi?id=48589
Summary: org.apache.catalina.realm.JNDIRealm User class should
be accessible from sub-classes
Product: Tomcat 6
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24878)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24878)
Patch to make JNDIRealm extendible by making the User class protected.
Currently, JNDIRealm uses objects of a User class to pass information between
several protected methods. The User class is only available inside the
org.apache.catalina.realm package. If you want to extend JNDIRealm and overload
some methods, you have two possibilities:
1. You put your class inside the org.apache.catalina.realm package. This is not
a very proper solution.
2. You overload all methods that use User objects and eliminate the latter.
This means that you have to copy a lot of logic from the JNDIRealm class.
I suggest to make an inner class out of the User class and make that protected
so that sub-classes can access it to properly extend the Realm. See the patch I
provided.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]