Examples of logout()


Examples of org.apache.commons.net.nntp.NNTPClient.logout()

                }
            }

            fileReader.close();

            client.logout();

            client.disconnect();
        }
        catch (IOException e)
        {
View Full Code Here

Examples of org.apache.commons.net.pop3.POP3Client.logout()

    // UIDL message that does not exist
    msgInfo = client.listUniqueIdentifier(10);
    assertThat(msgInfo, nullValue());

    boolean logoutSuccess = client.logout();
    assertThat(logoutSuccess, is(true));
  }

  @Test
  public void testDele() throws IOException
View Full Code Here

Examples of org.apache.commons.net.smtp.SMTPClient.logout()

                client.completePendingCommand();
            }

            fileReader.close();

            client.logout();

            client.disconnect();
        }
        catch (IOException e)
        {
View Full Code Here

Examples of org.apache.harmony.auth.module.JndiLoginModule.logout()

            module.login();
            module.commit();
        } catch (LoginException e) {
            fail("Login failed");
        } finally {
            module.logout();
        }
        assertEquals("Should't override the username value in sharedState",
                status.get("javax.security.auth.login.name"), "tester");
        assertEquals("Should't override the password value in sharedState",
                status.get("javax.security.auth.login.password"), "testerPass");
View Full Code Here

Examples of org.apache.harmony.auth.module.KeyStoreLoginModule.logout()

                .isEmpty());
        Set<Object> subjects2 = subject.getPublicCredentials();
        assertFalse("Should get at least one public credential", subjects2
                .isEmpty());
        try {
            assertTrue("Should be true", module.logout());
        } catch (LoginException e) {
            fail("Logout failed");
        }
        principals = subject.getPrincipals();
        assertTrue("Principals should be cleared", principals.isEmpty());
View Full Code Here

Examples of org.apache.harmony.auth.module.LdapLoginModule.logout()

        }
        catch(LoginException e){
            fail("Login should be failed");
        }
        finally{
            module.logout();
        }
       
        options.remove("tryFirstPass");
        options.put("clearPass", "true");
        status.put("javax.security.auth.login.name", "leo");
View Full Code Here

Examples of org.apache.jackrabbit.api.JackrabbitSession.logout()

                if (s.getUserManager().getAuthorizable(testID) == null) {
                    throw new NotExecutableException();
                }
            } finally {
                if (s != null) {
                    s.logout();
                }
            }
        }

        final Exception[] exception = new Exception[1];
View Full Code Here

Examples of org.apache.jackrabbit.api.XASession.logout()

    sfControl.expectAndReturn(sf.getSession(), session);
    sessionControl.expectAndReturn(session.getXAResource(), xaRes);

    session.save();
    session.logout();

    /*
     * MockControl repositoryControl =
     * MockControl.createNiceControl(Repository.class); Repository
     * repository = (Repository) repositoryControl.getMock();
View Full Code Here

Examples of org.apache.jackrabbit.core.SessionImpl.logout()

        }
        acl.addAccessControlEntry(user.getPrincipal(), accessControlManager.getSupportedPrivileges(path));
        accessControlManager.setPolicy(path, acl);

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
View Full Code Here

Examples of org.apache.james.imap.api.process.ImapSession.logout()

    public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
        logger.debug("Error while processing imap request" ,e.getCause());
       
        // logout on error not sure if that is the best way to handle it
        final ImapSession imapSession = (ImapSessionImpl) getAttachment(ctx).get(IMAP_SESSION);    
        if (imapSession != null) imapSession.logout();

        // just close the channel now!
        ctx.getChannel().close();
       
        super.exceptionCaught(ctx, e);
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.