Package org.codehaus.plexus.security.summit.session

Examples of org.codehaus.plexus.security.summit.session.SessionBindingEventProxy


     */
    public void setUser( User user )
    {
        if ( user != null )
        {
            getSession().setAttribute( USER_SESSION_KEY, new SessionBindingEventProxy( user ) );
        }
        else
        {
            removeUserFromSession();
        }
View Full Code Here


     */
    public User getUserFromSession()
    {
        try
        {
            SessionBindingEventProxy proxy = (SessionBindingEventProxy) getSession().getAttribute( USER_SESSION_KEY );

            // If the user isn't yet logged in, return null so that
            // the session validator can take the correct action
            // (i.e. make a temporary anonymous user).
            return ( proxy == null ? null : (User) proxy.getListener() );
        }
        catch ( ClassCastException e )
        {
            String message = "User object did not implement User interface.  " +
                             "if you are sure the interface is implemented, the user " +
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.security.summit.session.SessionBindingEventProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.