Package org.apache.jetspeed.security.activeauthentication

Examples of org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider


        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
            saveState(session, token, identityProvider.getSessionAttributeNames());
            request.getSession().invalidate();
            HttpSession newSession = request.getSession(true);
            restoreState(newSession, token);
            response.sendRedirect(response.encodeURL(request.getContextPath()
                    + "/login/redirector?token=") + token.getToken());
View Full Code Here


        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
            saveState(session, token, identityProvider.getSessionAttributeNames());
            request.getSession().invalidate();
            HttpSession newSession = request.getSession(true);
            restoreState(newSession, token);
            response.sendRedirect(response.encodeURL(request.getContextPath()
                    + "/login/redirector?token=") + token.getToken());
View Full Code Here

        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
            saveState(session, token, identityProvider.getSessionAttributeNames());
            request.getSession().invalidate();
            HttpSession newSession = request.getSession(true);
            restoreState(newSession, token);
            response.sendRedirect(response.encodeURL(request.getContextPath()
                    + "/login/redirector?token=") + token.getToken());
View Full Code Here

        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (!portalFiltered && authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
            saveState(session, token, identityProvider.getSessionAttributeNames());
            request.getSession().invalidate();
            HttpSession newSession = request.getSession(true);
            restoreState(newSession, token);
            response.sendRedirect(response.encodeURL(request.getContextPath()
                    + "/login/redirector?token=") + token.getToken());
View Full Code Here

        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (!portalFiltered && authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
            saveState(session, token, identityProvider.getSessionAttributeNames());
            request.getSession().invalidate();
            HttpSession newSession = request.getSession(true);
            restoreState(newSession, token);
            response.sendRedirect(response.encodeURL(request.getContextPath()
                    + "/login/redirector?token=") + token.getToken());
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider

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.