Examples of InvalidSessionException


Examples of org.apache.shiro.session.InvalidSessionException

            String sKey = assertString(key);
            Object removed = httpSession.getAttribute(sKey);
            httpSession.removeAttribute(sKey);
            return removed;
        } catch (Exception e) {
            throw new InvalidSessionException(e);
        }
    }
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

     * @throws InvalidSessionException in all cases - used by the Session 'write' method implementations.
     */
    protected void throwImmutableException() throws InvalidSessionException {
        String msg = "This session is immutable and read-only - it cannot be altered.  This is usually because " +
                "the session has been stopped or expired already.";
        throw new InvalidSessionException(msg);
    }
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

    public long getTimeout() throws InvalidSessionException {
        try {
            return httpSession.getMaxInactiveInterval() * 1000;
        } catch (Exception e) {
            throw new InvalidSessionException(e);
        }
    }
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

    public void setTimeout(long maxIdleTimeInMillis) throws InvalidSessionException {
        try {
            int timeout = Long.valueOf(maxIdleTimeInMillis / 1000).intValue();
            httpSession.setMaxInactiveInterval(timeout);
        } catch (Exception e) {
            throw new InvalidSessionException(e);
        }
    }
View Full Code Here

Examples of org.openbp.core.remote.InvalidSessionException

  {
    // Lookup session.
    if (sessions.get(session) == null)
    {
      // ...not found - thus illegal.
      throw new InvalidSessionException();
    }
  }
View Full Code Here

Examples of org.openbp.core.remote.InvalidSessionException

    Set eventSet = (Set) sessions.get(session);

    // If session could not be found, throw the exception.
    if (session == null)
    {
      throw new InvalidSessionException();
    }

    // Ok, so add the event.
    eventSet.add(eventName);
  }
View Full Code Here

Examples of org.teiid.client.security.InvalidSessionException

    } catch (SessionServiceException e) {
      throw new TeiidComponentException(e);
    }
   
    if (sessionInfo == null) {
      throw new InvalidSessionException();
    }
   
    SessionToken st = sessionInfo.getSessionToken();
    if (!st.equals(checkSession)) {
      throw new InvalidSessionException();
    }
    this.updateDQPContext(sessionInfo);
  }
View Full Code Here

Examples of org.teiid.client.security.InvalidSessionException

  @Override
  public void closeSession(String sessionID) throws InvalidSessionException {
    LogManager.logDetail(LogConstants.CTX_SECURITY, new Object[] {"closeSession", sessionID}); //$NON-NLS-1$
    if (sessionID == null) {
      throw new InvalidSessionException(RuntimePlugin.Util.getString("SessionServiceImpl.invalid_session", sessionID)); //$NON-NLS-1$
    }
    SessionMetadata info = this.sessionCache.remove(sessionID);
    if (info == null) {
      throw new InvalidSessionException(RuntimePlugin.Util.getString("SessionServiceImpl.invalid_session", sessionID)); //$NON-NLS-1$
    }
    if (info.getVDBName() != null) {
            try {
          dqp.terminateSession(info.getSessionId());
            } catch (Exception e) {
View Full Code Here

Examples of org.teiid.client.security.InvalidSessionException

  }

  private SessionMetadata getSessionInfo(String sessionID)
      throws InvalidSessionException {
    if (sessionID == null) {
      throw new InvalidSessionException(RuntimePlugin.Util.getString("SessionServiceImpl.invalid_session", sessionID)); //$NON-NLS-1$
    }
    SessionMetadata info = this.sessionCache.get(sessionID);
    if (info == null) {
      throw new InvalidSessionException(RuntimePlugin.Util.getString("SessionServiceImpl.invalid_session", sessionID)); //$NON-NLS-1$
    }
    return info;
  }
View Full Code Here

Examples of org.teiid.client.security.InvalidSessionException

      }
     
      @Override
      public void assertIdentity(SessionToken checkSession)
          throws InvalidSessionException, TeiidComponentException {
        throw new InvalidSessionException();
      }

    }, null);
    server.registerClientService(FakeService.class, new TestSocketRemoting.FakeServiceImpl(), null);
    return new SocketListener(address.getPort(), address.getAddress().getHostAddress(), 1024, 1024, 1, config, server, BufferManagerFactory.getStandaloneBufferManager());
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.