Package com.adito.security

Examples of com.adito.security.SessionInfo.invalidate()


                        Iterator loggedOnUserSessions = LogonControllerFactory.getInstance().getActiveSessions().values()
                                        .iterator();
                        while (loggedOnUserSessions.hasNext()) {
                            SessionInfo element = (SessionInfo) loggedOnUserSessions.next();
                            if (element.getUser().equals(user)) {
                                element.invalidate();
                            }
                        }
                        // Revoke all polices from the user
                        PolicyDatabaseFactory.getInstance().revokeAllPoliciesFromPrincipal(user);
                        udb.deleteAccount(user);
View Full Code Here


          SessionInfo info = (SessionInfo) map.get(ticket);
          if (info == null) {
            throw new Exception("No session with ticket " + ticket);
          } else {
            if(info.getType() == SessionInfo.UI || info.getType() == SessionInfo.DAV_CLIENT) {
              info.invalidate();
            }
            else if(info.getType() == SessionInfo.AGENT) {
                DefaultAgentManager.getInstance().unregisterAgent(info);
            }
          }
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.