Examples of authenticate()


Examples of de.dis2011.authentication.MaklerAuthenticator.authenticate()

            MaklerEditor me = new MaklerEditor(service);
            me.showMaklerMenu();
          }
          break;
        case MENU_PERSON:
          if(ma.authenticate()) {
            PersonEditor pe = new PersonEditor(service);
            pe.showPersonMenu();
          }
          break;
        case MENU_IMMO:
View Full Code Here

Examples of de.dis2011.authentication.PropertiesFileAuthenticator.authenticate()

    while(true) {
      int response = mainMenu.show();
     
      switch(response) {
        case MENU_MAKLER:
          if(pfa.authenticate()) {
            MaklerEditor me = new MaklerEditor(service);
            me.showMaklerMenu();
          }
          break;
        case MENU_PERSON:
View Full Code Here

Examples of de.iritgo.aktera.authentication.Authenticator.authenticate()

  public Object performWithResult()
  {
    String userName = properties.getProperty("userName");
    String password = properties.getProperty("password");
    Authenticator authenticator = (Authenticator) SpringTools.getBean(Authenticator.ID);
    return authenticator.authenticate(userName, password);
  }
}
View Full Code Here

Examples of er.examples.erjaxws.ws.StatefulAction.authenticate()

    /* setting this property is essential for enabling stateful mode in our client proxy
     * after setting this, session cookies will be passed to the server on subsequent
     * requests */
    ((BindingProvider) sAction).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);

    sAction.authenticate("name", "password");
    serverOutput = sAction.testAction("test");
   
    return null;
  }
 
View Full Code Here

Examples of hudson.security.CliAuthenticator.authenticate()

        CliAuthenticator authenticator = Jenkins.getInstance().getSecurityRealm().createCliAuthenticator(this);
        new ClassParser().parse(authenticator,p);

        try {
            p.parseArgument(args.toArray(new String[args.size()]));
            Authentication auth = authenticator.authenticate();
            if (auth==Jenkins.ANONYMOUS)
                auth = loadStoredAuthentication();
            sc.setAuthentication(auth); // run the CLI with the right credential
            if (!(this instanceof LoginCommand || this instanceof HelpCommand))
                Jenkins.getInstance().checkPermission(Jenkins.READ);
View Full Code Here

Examples of io.undertow.security.api.AuthenticationMechanism.authenticate()

        }

        private AuthenticationState transition() {
            if (mechanismIterator.hasNext()) {
                final AuthenticationMechanism mechanism = mechanismIterator.next();
                AuthenticationMechanismOutcome outcome = mechanism.authenticate(exchange, SecurityContextImpl.this);

                if (outcome == null) {
                    throw UndertowMessages.MESSAGES.authMechanismOutcomeNull();
                }
View Full Code Here

Examples of io.undertow.security.api.SecurityContext.authenticate()

        SecurityContext sc = exchange.getSecurityContext();
        sc.setAuthenticationRequired();
        // TODO: this will set the status code and headers without going through any potential
        // wrappers, is this a problem?
        if (sc.authenticate()) {
            if (sc.isAuthenticated()) {
                return true;
            } else {
                throw UndertowServletMessages.MESSAGES.authenticationFailed();
            }
View Full Code Here

Examples of javax.management.remote.JMXAuthenticator.authenticate()

      if (environment != null)
      {
         JMXAuthenticator authenticator = (JMXAuthenticator)environment.get(JMXConnectorServer.AUTHENTICATOR);
         if (authenticator != null)
         {
            return authenticator.authenticate(credentials);
         }
      }
      return null;
   }
}
View Full Code Here

Examples of javax.servlet.http.HttpServletRequest.authenticate()

       
        String uname = request.getParameter("username");
        String pword = request.getParameter("password");
        try {
        request.login(uname, pword);
        request.authenticate(response);
        } catch(ServletException se) {
            request.setAttribute("authenticationMessage", "Login failed.");
            Logger.getLogger(actions.LoginAction.class.getName()).log(Level.INFO, "Login Failed for User ID: "+uname);
            return("fail");
        }
View Full Code Here

Examples of models.Member.authenticate()

            member.preregister(oAuthAccount);
            Profile.register(member.login, oAuthAccount.provider);
        } else {
            // Un membre existant s'est connecté avec un nouveau provider
            // On se contente de lui ajouter le nouvel account utilisé
            member.authenticate(oAuthAccount);
            member.updateProfile(false);
            onSuccessfulAuthentication(member.login);
        }
    }
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.