Examples of logout()


Examples of java.security.AuthProvider.logout()

  LoginException logoutException = null;
  Provider provider = keyStore.getProvider();
  if (provider instanceof AuthProvider) {
      AuthProvider ap = (AuthProvider)provider;
      try {
    ap.logout();
    if (debug) {
        debugPrint("logged out of KeyStore AuthProvider");
    }
      } catch (LoginException le) {
    // save but continue below
View Full Code Here

Examples of javax.jcr.Session.logout()

      assertNotNull(repos);
      ManageableRepository repo = repos.getDefaultRepository();
      assertNotNull(repo);
      Session session = repo.getSystemSession("portal-test");
      assertNotNull(session);
      session.logout();
   }
}
View Full Code Here

Examples of javax.security.auth.login.LoginContext.logout()

        // try to log out of the context.
        try {
          LoginContext context = info.getLoginContext();
          if (context != null) {
            context.logout();
          }
    } catch (LoginException e) {
       LogManager.logWarning(LogConstants.CTX_SECURITY,e,"Exception terminitating session"); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of javax.security.auth.spi.LoginModule.logout()

            Set principals = m_subject.getPrincipals();
            assertEquals( 1, principals.size() );
            assertTrue( principals.contains( principal ) );
            assertFalse( principals.contains( Role.AUTHENTICATED ) );
            assertFalse( principals.contains( Role.ALL ) );
            module.logout();
            assertEquals( 0, principals.size() );
        }
        catch( LoginException e )
        {
            System.err.println( e.getMessage() );
View Full Code Here

Examples of javax.servlet.http.HttpServletRequest.logout()

    public void logout() throws Exception {
        TestingAuthenticationToken expectedAuth = new TestingAuthenticationToken("user", "password","ROLE_USER");
        SecurityContextHolder.getContext().setAuthentication(expectedAuth);

        HttpServletRequest wrappedRequest = wrappedRequest();
        wrappedRequest.logout();

        verify(logoutHandler).logout(wrappedRequest, response, expectedAuth);
        verifyZeroInteractions(authenticationManager, logoutHandler);
        verify(request, times(0)).logout();
    }
View Full Code Here

Examples of kfmes.natelib.NateonMessenger.logout()

    } catch (InterruptedException e) {
    }
   
    if (nate.isLoggedIn()) {
      try {
        nate.logout();
      } catch (IOException e) {
      }
    }
   
  }
View Full Code Here

Examples of l2p.gameserver.model.L2Player.logout()

        st.nextToken();
        String player = st.nextToken();
        L2Player plyr = L2World.getPlayer(player);
        if(plyr != null)
        {
          plyr.logout(false, false, true, true);
        }
        if(plyr != null)
        {
          activeChar.sendMessage("You kicked " + plyr.getName() + " from the game.");
        }
View Full Code Here

Examples of lineage2.gameserver.model.Player.logout()

        oldClient.setAuthed(false);
        Player activeChar = oldClient.getActiveChar();
        if (activeChar != null)
        {
          activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
          activeChar.logout();
        }
        else
        {
          oldClient.close(ServerClose.STATIC);
        }
View Full Code Here

Examples of marauroa.functional.SimpleClient.logout()

            RPObject result = resChar.getTemplate();
            assertTrue(result.has("client"));
            assertEquals("junit" + i, result.get("client"));

            client.logout();

            for (int logins = 0; logins < TIMES_TO_LOGIN; logins++) {
              Thread.sleep(Math.abs(rand.nextInt() % 30) * 1000 + 5000);
              client.login("testUsername" + i, "password");

View Full Code Here

Examples of net.sf.jml.MsnMessenger.logout()

                        }

                    } catch (IOException e)
                    {
                        ((AbstractMessenger) messenger).fireExceptionCaught(e);
                        messenger.logout();
                    }
                }
            }.start();
        }
    }
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.