Package com.sun.enterprise.security.web

Examples of com.sun.enterprise.security.web.SingleSignOnEntry


        if (_logger.isLoggable(Level.FINEST)) {
            _logger.finest("Checking for cached principal for "
                           + cookie.getValue());
        }

        SingleSignOnEntry entry = lookupEntry(cookie.getValue());
        if (entry != null) {

            if (_logger.isLoggable(Level.FINEST)) {
                _logger.finest("Cached SingleSignOnEntry: " + entry);
            }
View Full Code Here


        if (_logger.isLoggable(Level.FINEST)) {
            _logger.finest("HASingleSignOn.lookupEntry(): ssoId=" + ssoId);
        }

        SingleSignOnEntry ssoEntry=null;

        long startTime = System.currentTimeMillis();
        SSOStorePoolElement store = null;
        try {
            store = (SSOStorePoolElement) _pool.take();
View Full Code Here

        try {
            store = (SSOStorePoolElement) _pool.take();
            store.setContainer(this.getContainer());

            SingleSignOnEntry ssoEntry = new HASingleSignOnEntry(ssoId,
                                                                 principal,
                                                                 authType,
                                                                 username,
                                                                 password,
                                                                 realmName);
View Full Code Here

                               + ssoId + "'");
            }
        }

        // Look up and remove the corresponding SingleSignOnEntry
        SingleSignOnEntry sso = null;

        long startTime = System.currentTimeMillis();
        SSOStorePoolElement store = null;
        try {
            store = (SSOStorePoolElement) _pool.take();
                    store.setContainer(this.getContainer());

            synchronized (cache) {
                sso = (SingleSignOnEntry) cache.remove(ssoId);
            }
            try {
                /* replace with line below
                if(!bgCall)
                    store.remove(ssoId);//remove from ssotable
                else
                    store.remove(ssoId,null);
                 */
                store.remove(ssoId);//remove from ssotable               
            } catch (Exception e){
                e.printStackTrace();
            }

            if (sso == null)
                return;

            // Expire any associated sessions
            Session sessions[] = sso.findSessions();
            for (int i = 0; i < sessions.length; i++) {
                if (_logger.isLoggable(Level.FINEST)) {
                    _logger.finest("Invalidating session " + sessions[i]);
                }
                // Remove from reverse cache first to avoid recursion
View Full Code Here

        SSOStorePoolElement store = null;
        try {
            store = (SSOStorePoolElement) _pool.take();
            store.setContainer(this.getContainer());

            SingleSignOnEntry sso = lookupEntry(ssoId);
            if (sso != null)
                sso.addSession(this, session);
            synchronized (reverse) {
                reverse.put(session, ssoId);
            }
            try {
                if((session != null)&&(session instanceof HASession)){
View Full Code Here

            synchronized (cache) {

                Iterator it = cache.keySet().iterator();
                while (it.hasNext()) {
                    String key = (String) it.next();
                    SingleSignOnEntry sso = (SingleSignOnEntry) cache.get(key);
                    if (((HASingleSignOnEntry)sso).dirty) {
                        if(_logger.isLoggable(Level.FINEST)) {
                            _logger.finest("Stop: updating the SSO session "
                                           +key);
                        }                        
View Full Code Here

            synchronized (cache) {

                Iterator it = cache.keySet().iterator();
                while (it.hasNext()) {
                    String key = (String) it.next();
                    SingleSignOnEntry sso = (SingleSignOnEntry) cache.get(key);
                    if(_logger.isLoggable(Level.FINEST)) {
                        _logger.finest(tooOld
                                       + "*******************  "
                                       + sso.lastAccessTime
                                       + "   SSO Expiration thread started. Current entries: "
View Full Code Here

              Iterator it = cache.keySet().iterator();
                while (it.hasNext()) {

                    String key = (String) it.next();
                    SingleSignOnEntry sso = (SingleSignOnEntry) cache.get(key);
                    if(_logger.isLoggable(Level.FINEST)) {
                        _logger.finest("===="
                                       + sso.lastAccessTime
                                       + "   SSO Expiration/Updation thread started. Current cache entries: "
                                       + cache.size());
View Full Code Here

       
            HADBConnectionGroup connGroup = this.getConnectionsFromPool();
            Connection internalConn = connGroup._internalConn;
            Connection externalConn = connGroup._externalConn;

            SingleSignOnEntry _ssoEntry = null;

        try {
            _ssoEntry = loadSSO(ssoId, internalConn);
            try {
                externalConn.close();
View Full Code Here

        if (sso != null) {
            if (_debug > 0) {
                debug("Inside associate() sso != null");
            }
            //SingleSignOnEntry ssoEntry = ((ReplicationSingleSignOn)sso).lookup(ssoId);
            SingleSignOnEntry ssoEntry = ((ReplicationSingleSignOn)sso).lookupEntry(ssoId);
                if(_logger.isLoggable(Level.FINEST)) {
                    _logger.finest("Inside associate() ssoEntry = "+ssoEntry);
                }
                if(ssoEntry!=null)
                    ssoEntry.addSession(sso, _session);
        }

    }  
View Full Code Here

TOP

Related Classes of com.sun.enterprise.security.web.SingleSignOnEntry

Copyright © 2018 www.massapicom. 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.