I need to override a single method in a standard tomcat6 realm for a particular
webApp/context.
The method: RealmBase.getPrincipal(X509Certificate usercert)
Q1) Should I create a new custom realm (..subClass of RealmBase) which is
based-on/copied-from the original/standard tomcat realm?
Q2) what all classes will I need in my new custom realm? (...only
MyCustomRealm class itself? )
Q3) Should I reference my new realm via my webapp's META-INF/context.xml file?
Q4) Should I put my realm class(es) in a jar inside the tomcat6/lib directory?
...I am new to tweaking realm's, so appreciate the feedback.