Package nexj.core.util.auth

Examples of nexj.core.util.auth.SimplePrincipal


         s_logger.debug("Receiving message with oid " + msg.getOID() + " from queue " + sQueueName
            + ((channel == null) ? "" : (" (" + channel.getName() + ")")) + " as user \"" + msg.getValue("user") + "\"");
      }

      // login the message sender
      context.login(new SimplePrincipal((String)msg.getValue("user")));

      // check that message has not been recovered by the dispatcher
      if (!((Boolean)msg.findValue("isProcessing", Boolean.TRUE)).booleanValue())
      {
         throw new InvalidDispatcherException(sDispatcherId);
View Full Code Here


      {
         return; // message has been canceled. Unlikely, but possible.
      }

      // login the message sender
      context.login(new SimplePrincipal((String)msg.getValue("user")));

      // check that message has not been recovered by the dispatcher
      if (!((Boolean)msg.findValue("isProcessing", Boolean.TRUE)).booleanValue())
      {
         throw new InvalidDispatcherException(sDispatcherId);
View Full Code Here

                  try
                  {
                     testContext.setAudited(false);
                     testContext.getGlobalCache().clear();
                     testContext.initialize((m_sSystemUser == null) ? null : new SimplePrincipal(m_sSystemUser),
                        new GlobalEnvironment(m_globalEnv));

                     if (m_container != null && m_sSystemUser != null)
                     {
                        Event grantDebugEvent = testContext.getUserClass().findEvent(GRANT_DEBUG, 0);
View Full Code Here

            nCookie = Logger.pushContext(sAddress);
         }

         String sUser = strategy.getUser();

         context.initialize((sUser != null) ? new SimplePrincipal(sUser) : null);

         int nUserCookie = Logger.pushContext(context.getPrincipal().getName());

         if (nCookie == -1)
         {
View Full Code Here

      }

      try
      {
         m_context.setUserClass(getMetadata().getMetaclass("User"));
         m_context.initialize(new SimplePrincipal(getUser()));
      }
      catch (Throwable t)
      {
         ThreadContextHolder.setContext(null);
         ObjUtil.rethrow(t);
View Full Code Here

TOP

Related Classes of nexj.core.util.auth.SimplePrincipal

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.