Package org.springframework.richclient.security

Examples of org.springframework.richclient.security.AuthenticationEvent


        // Commit the successful Authentication object to the secure ContextHolder
        SecurityContextHolder.getContext().setAuthentication( result );
        setAuthentication( result );

        // Fire application events to advise of new login
        appCtx.publishEvent( new AuthenticationEvent( result ) );
        appCtx.publishEvent( new LoginEvent( result ) );

        return result;
    }
View Full Code Here


        SecurityContextHolder.getContext().setAuthentication( null );
        setAuthentication( null );

        // Fire application event to advise of logout
        ApplicationContext appCtx = Application.instance().getApplicationContext();
        appCtx.publishEvent( new AuthenticationEvent( null ) );
        appCtx.publishEvent( new LogoutEvent( existing ) );

        return existing;
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.security.AuthenticationEvent

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.