Examples of logout()


Examples of org.apache.james.imap.main.ImapSessionImpl.logout()

        getAttachment(ctx).put(BUFFERED_OUT, bufferedOut);
       
        // handle requests in a loop
        while (channel.isConnected() && handler.handleRequest(in, bufferedOut, imapSession));
       
        if (imapSession != null) imapSession.logout();
       
        logger.debug("Thread execution complete for session " + channel.getId());

        channel.close();
    }
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.logout()

    private void logout() {
        try {
            SecurityService securityService = SystemInstance.get().getComponent(SecurityService.class);
            if (clientIdentity != null) {
                logger.info("Logging out");
                securityService.logout(clientIdentity);
                ClientSecurity.setIdentity(null);
            }
        } catch (LoginException e) {
            throw new OpenEJBRuntimeException("User could not be logged out.", e);
        }
View Full Code Here

Examples of org.apache.shiro.subject.Subject.logout()

            ((DefaultSecurityManager) SecurityUtils.getSecurityManager()).getSubjectDAO().save(subject);

        } catch (AuthenticationException e) {
            LOG.warn("Unable to log in user " + createRequest.username, e);
        } catch (UnknownSessionException e) {
            subject.logout();
        }
        if (subject.isAuthenticated()) {
            final org.apache.shiro.session.Session session = subject.getSession();
            id = session.getId();
            result.sessionId = id.toString();
View Full Code Here

Examples of org.apache.shiro.subject.support.DelegatingSubject.logout()

        assertNull(session.getAttribute(key));
        Serializable secondSessionId = session.getId();
        assertNotNull(secondSessionId);
        assertFalse(firstSessionId.equals(secondSessionId));

        subject.logout();

        sm.destroy();
    }

    @Test
View Full Code Here

Examples of org.apache.sling.api.auth.Authenticator.logout()

        final Authenticator authenticator = this.authenticator;
        if (authenticator != null) {
            try {
                AuthUtil.setLoginResourceAttribute(request, null);
                authenticator.logout(request, response);
                return;
            } catch (IllegalStateException ise) {
                log.error("service: Response already committed, cannot logout");
                return;
            }
View Full Code Here

Examples of org.apache.tapestry.vlib.VirtualLibraryEngine.logout()

    public void logout(IRequestCycle cycle)
    {
        VirtualLibraryEngine vengine = (VirtualLibraryEngine) getPage().getEngine();

        vengine.logout();

        IMessageProperty home = (IMessageProperty) cycle.getPage("Home");

        home.setMessage(getMessage("goodbye"));
View Full Code Here

Examples of org.brixcms.jcr.api.JcrSession.logout()

            JcrSession s = getCurrentSession(null);
            for (RepositoryInitializer initializer : initializers) {
                initializer.initializeRepository(this, s);
            }
            s.save();
            s.logout();
        }
        catch (RepositoryException e) {
            throw new RuntimeException("Couldn't initialize repository", e);
        }
View Full Code Here

Examples of org.codehaus.swizzle.confluence.Confluence.logout()

                Confluence confluence = new Confluence(endpoint);
                confluence.login(username, password);
                Page page = confluence.getPage("OPENEJB", "Validation Keys Audit Report");
                page.setContent(confluenceOutput);
                confluence.storePage(page);
                confluence.logout();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
View Full Code Here

Examples of org.deepak.util.SSHClient.logout()

          {
            ssh = new SSHClient(host, port, user, pwd);
          }
          ssh.login();
          ssh.copyFrom(tmpFilePath, copyDir);
          ssh.logout();
          filePath = copyDir + File.separator + tmpFileName;
        }
        else if ("local".equalsIgnoreCase(tmpSrc.trim()))
        {
          // Just return the filename here
View Full Code Here

Examples of org.drools.repository.RulesRepository.logout()

        assertEquals( ver + 1,
                      ass.getVersionNumber() );
        assertEquals( "hey ho",
                      ass.getCheckinComment() );

        repo.logout();

        Lifecycle.endApplication();
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.