Re: MyPrincipal cannot be resolved to a type

2006-06-29 Thread Jon Wingfield
Fair enough. We also extend RealmBase and just override hasRole(Principal principal, String role), which is the only place GenericPrincipal is referenced in RealmBase. We use our own storage mechanism for Roles. http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/ap

Re: MyPrincipal cannot be resolved to a type

2006-06-29 Thread Yuri de Wit
Yes, in the spirit of "dont reinvent the wheel" I was trying to leverage as much as possible from the catalina BaseRealm, but that implementation requires GenericPrincipal to get the list of roles associated with the principal. Thanks for the pointer. Any issues moving all the jar from server/li

Re: MyPrincipal cannot be resolved to a type

2006-06-29 Thread Jon Wingfield
In addition, custom Realms merely need to create instances of Principal. There is no requirement for them to extend GenericPrincipal. Our Realm classes are deployed to server/lib Our extension to Principal is deployed to common/lib See the thread "Is custom realm using user/role data in webapp

Re: MyPrincipal cannot be resolved to a type

2006-06-28 Thread Nicholas Sushkin
> "MyPrincipal cannot be resolve to a type" > > when trying the following: > > ((MyPrincipal)request.getUserPrincipal()).getDisplayName(); Yuri, Josso implemented their own Principal that has additional properties. You may want to poke around http://www.josso.org/developer-howto.html -- Nichol

MyPrincipal cannot be resolved to a type

2006-06-28 Thread Yuri de Wit
I have created my own Realm implementation that returns a custom Principal extending GenericPrincipal (it must extend it). The reason I did that was to be able to provide additional information about the principal such as the user display ame and possibly other data in the future. The Realm imple

"MyPrincipal cannot be resolved to a type"

2006-06-28 Thread Yuri de Wit
I have created my own Realm implementation that returns a custom Principal extending GenericPrincipal (it must extend it). The reason I did that was to be able to provide additional information about the principal such as the user display ame and possibly other data in the future. The Realm imple