|
From: bryan <nih...@gm...> - 2004-09-16 19:12:35
|
check out ie.jestate.acegi.AuthenticationHolder
snip=
public String getCurrentUserName() {
SecureContext secureContext = ((SecureContext) ContextHolder
.getContext());
final Authentication currentUser = secureContext.getAuthentication();
return currentUser.getName();
}
=snip
--b
On Thu, 16 Sep 2004 11:56:44 -0700 (PDT), Chris Axe <ca...@ya...> wrote:
> OK thanks
>
>
> --- bryan <nih...@gm...> wrote:
>
> > check out
> >
> > http://acegisecurity.sourceforge.net/
> >
> >
> > and check out my source code on
> >
> > https://jestate.dev.java.net
> >
> > --b
> >
> >
> > On Thu, 16 Sep 2004 10:11:07 -0700 (PDT), Chris Axe
> > <ca...@ya...> wrote:
> > >
> > > All
> > >
> > > In chapter 12 of "J2EE Development without ELB" on
> > > page 360, Rod/Jurgen talk about having a sevlet
> > > container authenticate a user and binding the
> > users
> > > Principal to a ThreadLocal for use by AOP. Does
> > any
> > > one have an example of this you can share?
> > >
> > > Regards,
> > >
> > > Chris Axe
> > >
> > > _______________________________
> > > Do you Yahoo!?
> > > Express yourself with Y! Messenger! Free. Download
> > now.
> > > http://messenger.yahoo.com
> > >
> > >
> >
> -------------------------------------------------------
> > > This SF.Net email is sponsored by: YOU BE THE
> > JUDGE. Be one of 170
> > > Project Admins to receive an Apple iPod Mini FREE
> > for your judgement on
> > > who ports your project to Linux PPC the best.
> > Sponsored by IBM.
> > > Deadline: Sept. 24. Go here:
> > http://sf.net/ppc_contest.php
> > > _______________________________________________
> > > Springframework-developer mailing list
> > > Spr...@li...
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
> > >
> >
> >
> >
> -------------------------------------------------------
> > This SF.Net email is sponsored by: YOU BE THE JUDGE.
> > Be one of 170
> > Project Admins to receive an Apple iPod Mini FREE
> > for your judgement on
> > who ports your project to Linux PPC the best.
> > Sponsored by IBM.
> > Deadline: Sept. 24. Go here:
> > http://sf.net/ppc_contest.php
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> >
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
|