Thanks it worked. But it returns encoded password. Actually there is
scenario when i ask user for his passowrd before performing certain action.
I plan to store the current user password at logon time in session and later
when ever re-validation is required just  match the entered password with
one in session.

For this either i need to decode password found through PasswordCredential
or i have to encode palin password entered by user.

Thanks


On Mon, Apr 18, 2011 at 8:36 PM, Woonsan Ko <woon_...@yahoo.com> wrote:

> You can use the following instead:
> org.apache.jetspeed.security.UserManager#getPasswordCredential(User user);
> org.apache.jetspeed.security.UserManager#getUser(String userName);
>
> Woonsan
>
> --- On Mon, 4/18/11, anyz <anyz...@gmail.com> wrote:
>
> > From: anyz <anyz...@gmail.com>
> > Subject: Getting User Password from Subject
> > To: "Jetspeed Users List" <jetspeed-user@portals.apache.org>
> > Date: Monday, April 18, 2011, 9:18 AM
>  > I need to get user password from
> > javax.security.auth.Subject and set in
> > session. I noted we can use
> > SecurityHelper.getPasswordCredential().getPassword() for
> > this. However its
> > not available in jetspeed-security-2.2.1 version that i
> > think is appropriate
> > version to use with Jetspeed 2.2.1.
> >
> > Is SecurityHelper moved some where else or is there other
> > way to go. I could
> > not find out.
> >
> > Thanks
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
>
>

Reply via email to