Examples of validateUser()


Examples of org.exoplatform.services.security.Authenticator.validateUser()

      cservice = (CommandService)container.getComponentInstanceOfType(CommandService.class);

      // login via Authenticator
      Authenticator authr = (Authenticator)container.getComponentInstanceOfType(Authenticator.class);
      String validUser =
         authr.validateUser(new Credential[]{new UsernameCredential("root"), new PasswordCredential("exo")});
      Identity id = authr.createIdentity(validUser);
      ConversationState s = new ConversationState(id);
      ConversationState.setCurrent(s);

      ctx = new BasicAppContext(repService.getDefaultRepository());
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

      // we need to login (see BasicAppContext, 38) and set current item before ctx using
      // login via Authenticator
      Authenticator authr = (Authenticator)container.getComponentInstanceOfType(Authenticator.class);
      String validUser =
         authr.validateUser(new Credential[]{new UsernameCredential("root"), new PasswordCredential("exo")});
      Identity id = authr.createIdentity(validUser);
      ConversationState s = new ConversationState(id);
      ConversationState.setCurrent(s);

      ctx = new CliAppContext(repService.getDefaultRepository(), PARAMETERS_KEY);
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

         throw new LoginException("No Authenticator component found, check your configuration");

      Credential[] credentials =
         new Credential[]{new UsernameCredential(this.userName), new PasswordCredential(this.userPass)};

      this.userId = authenticator.validateUser(credentials);
      Identity identity = authenticator.createIdentity(this.userId);
      identityRegistry.register(identity);

      ConversationState state = new ConversationState(identity);
      // keep subject as attribute in ConversationState
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();

      if (sm != null && server.getConfiguration().isSecurityEnabled())
      {
         validated = sm.validateUser(login, passcode);
      }

      return validated;
   }
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();
     
      // The sm will be null case security is not enabled...
      if (sm != null)
      {
         sm.validateUser(login, passcode);
      }

      connection.setLogin(login);
      connection.setPasscode(passcode);
      connection.setClientID(clientID);
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();

      if (sm != null && server.getConfiguration().isSecurityEnabled())
      {
         validated = sm.validateUser(login, passcode);
      }

      return validated;
   }
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();
     
      if (sm != null && server.getConfiguration().isSecurityEnabled())
      {
         sm.validateUser(login, passcode);
      }

      connection.setLogin(login);
      connection.setPasscode(passcode);
      connection.setClientID(clientID);
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();

      if (sm != null && server.getConfiguration().isSecurityEnabled())
      {
         sm.validateUser(login, passcode);
      }

      connection.setLogin(login);
      connection.setPasscode(passcode);
      connection.setClientID(clientID);
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();
     
      // The sm will be null case security is not enabled...
      if (sm != null)
      {
         sm.validateUser(login, passcode);
      }

      connection.setLogin(login);
      connection.setPasscode(passcode);
      connection.setClientID(clientID);
View Full Code Here

Examples of org.hornetq.spi.core.security.HornetQSecurityManager.validateUser()

      HornetQSecurityManager sm = server.getSecurityManager();

      if (sm != null && server.getConfiguration().isSecurityEnabled())
      {
         validated = sm.validateUser(login, passcode);
      }

      return validated;
   }
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.