Examples of logout()


Examples of org.keycloak.adapters.AdapterTokenStore.logout()

                KeycloakSecurityContext ksc = exchange.getAttachment(UndertowHttpFacade.KEYCLOAK_SECURITY_CONTEXT_KEY);
                if (ksc != null && ksc instanceof RefreshableKeycloakSecurityContext) {
                    ((RefreshableKeycloakSecurityContext) ksc).logout(deployment);
                }
                AdapterTokenStore tokenStore = getTokenStore(exchange, facade, deployment, securityContext);
                tokenStore.logout();
            }
        };

        securityContext.registerNotificationReceiver(logoutReceiver);
    }
View Full Code Here

Examples of org.knopflerfish.cpaexample.service.user.UserService.logout()

    ServiceReference sRef =
      bc.getServiceReference(UserService.class.getName());
    if (sRef != null) {
      UserService us = (UserService) bc.getService(sRef);
      if (us != null) {
        us.logout();
      }
      bc.ungetService(sRef);
    }
  }
View Full Code Here

Examples of org.mc4j.ems.impl.jmx.connection.support.providers.JBossConnectionProvider.logout()

                returnValue = method.invoke(this.remoteServer, args);
            } finally {
                if (isJBossConnection) {
                    JBossConnectionProvider jbossProvider = (JBossConnectionProvider) this.provider;
                    // Logout via JAAS before returning...
                    jbossProvider.logout();
                }
            }
            return returnValue;
        } catch(InvocationTargetException e) {
            failures++;
View Full Code Here

Examples of org.modeshape.jcr.api.Session.logout()

                //
                // // Prime creating a first XPath query and SQL query ...
                // session.getWorkspace().getQueryManager().createQuery("//element(*,nt:unstructured)", Query.XPATH);
                // session.getWorkspace().getQueryManager().createQuery("SELECT * FROM [nt:base]", Query.JCR_SQL2);
            } finally {
                session.logout();
            }

            // Prime creating the schemata ...
            // repository.nodeTypeManager().getRepositorySchemata();
        } catch (RuntimeException e) {
View Full Code Here

Examples of org.ofbiz.guiapp.xui.XuiSession.logout()

    public static synchronized void logout(PosScreen pos) {
        pos.setWaitCursor();
        PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
        XuiSession session = pos.getSession();
        trans.closeTx();
        session.logout();
        pos.showPage("pospanel");
        PosScreen.currentScreen.setLock(true);
        pos.setNormalCursor();
    }
View Full Code Here

Examples of org.ofbiz.ldap.commons.InterfaceOFBizAuthenticationHandler.logout()

        if (rootElement != null) {
            String className = UtilXml.childElementValue(rootElement, "AuthenticationHandler", "org.ofbiz.ldap.openldap.OFBizLdapAuthenticationHandler");
            try {
                Class<?> handlerClass = Class.forName(className);
                InterfaceOFBizAuthenticationHandler authenticationHandler = (InterfaceOFBizAuthenticationHandler) handlerClass.newInstance();
                result = authenticationHandler.logout(request, response, rootElement);
            } catch (ClassNotFoundException e) {
                Debug.logError(e, "Error calling userLogin service", module);
                Map<String, String> messageMap = UtilMisc.toMap("errorMessage", e.getMessage());
                String errMsg = UtilProperties.getMessage(resourceWebapp, "loginevents.following_error_occurred_during_login", messageMap, UtilHttp.getLocale(request));
                request.setAttribute("_ERROR_MESSAGE_", errMsg);
View Full Code Here

Examples of org.picketlink.Identity.logout()

    Identity identity = getIdentity();

    DefaultLoginCredentials creds = extractCredentials(request);

    if (creds.getCredential() != null && this.forceReAuthentication) {
      identity.logout();
      creds = extractCredentials(request);
    }

    if (isProtected(request) && !identity.isLoggedIn()) {
      // Force session creation
View Full Code Here

Examples of org.rhq.enterprise.clientapi.RemoteClient.logout()

        client.setTransport(null);
        client.setHost(null);
        client.setPort(0);
        RemoteClient remoteClient = client.getRemoteClient();
        if (null != remoteClient) {
            remoteClient.logout();
        }
        // this call has the side effect of setting bindings for the new remote client and its subject       
        client.setRemoteClient(null);
        client.setSubject(null);
        client.setUser(null);
View Full Code Here

Examples of org.rhq.enterprise.server.auth.SubjectManagerLocal.logout()

    private Subject freshUser() {
        SubjectManagerLocal subjectManager = LookupUtil.getSubjectManager();

        if (user != null) {
            try {
                subjectManager.logout(user);
            } catch (PermissionException e) {
                //we can safely ignore a permission exception during logout...
            }
        }
View Full Code Here

Examples of org.sd_network.vfs.VfsService.logout()

            System.out.println("You have already logged out.");

        // logout.
        VfsService vfsService = VfsContext.getService();
        try {
            vfsService.logout(sessionID);
        } catch (VfsIOException e) {
            System.out.println("ERROR: some file session close failed.");
        }
        session.clearSessionID();
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.