Examples of LoginResult


Examples of mireka.login.LoginResult

        if (args.size() != 2)
            throw new CommandSyntaxException("Two arguments are expected");
        String user = args.get(0);
        String digest = args.get(1);
        byte[] digestBytes = valueOfHex(digest);
        LoginResult result =
                loginSpecification.evaluateApop(user, timestamp, digestBytes);
        if (result.decision == LoginDecision.VALID) {
            startTransaction(result.principal);
        } else {
            logger.debug("Unsuccessful login result: {}", result.decision);
View Full Code Here

Examples of mireka.login.LoginResult

    private LoginSpecification loginSpecification;

    @Override
    public void login(String username, String password)
            throws LoginFailedException {
        LoginResult loginResult =
                loginSpecification.evaluatePlain(username, password);
        switch (loginResult.decision) {
        case VALID:
            logger.debug("{} logged in", username);
            return;
View Full Code Here

Examples of net.md_5.bungee.connection.LoginResult

        if ( BungeeCord.getInstance().config.isIpForward() )
        {
            String newHost = copiedHandshake.getHost() + "\00" + user.getAddress().getHostString() + "\00" + user.getUUID();

            LoginResult profile = user.getPendingConnection().getLoginProfile();
            if ( profile != null && profile.getProperties() != null && profile.getProperties().length > 0 )
            {
                newHost += "\00" + BungeeCord.getInstance().gson.toJson( profile.getProperties() );
            }
            copiedHandshake.setHost( newHost );
        }
        channel.write( copiedHandshake );
View Full Code Here

Examples of org.eclipse.orion.server.authentication.form.FormAuthHelper.LoginResult

  @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    String pathInfo = req.getPathInfo() == null ? "" : req.getPathInfo(); //$NON-NLS-1$

    if (pathInfo.startsWith("/form")) { //$NON-NLS-1$
      LoginResult authResult = FormAuthHelper.performAuthentication(req, resp);
      if (authResult == LoginResult.OK) {
        // redirection from
        // FormAuthenticationService.setNotAuthenticated
        String versionString = req.getHeader("Orion-Version"); //$NON-NLS-1$
        Version version = versionString == null ? null : new Version(versionString);
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult

      public void onSuccess(RegisterOntologyResult result) {
        registrationCompleted(popup, result);
      }
    };

    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    Orr.service.registerOntology(createOntologyResult, loginResult , callback);
  }
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult

      public void onSuccess(RegisterOntologyResult result) {
        registrationCompleted(popup, result);
      }
    };

    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    Orr.service.registerOntology(createOntologyResult, loginResult , callback);
  }
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult

      buttons.add(loadButton);
    }
   
    // include the "details" button only if an administrator is logged in
    // OR this is running in my dev environment (for testing)
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( (loginResult != null && loginResult.isAdministrator())
    ||   !GWT.isScript()
    ) {
      buttons.add(detailsButton);
    }
   
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult

      buttons.add(loadButton);
    }
   
    // include the "details" button only if an administrator is logged in
    // OR this is running in my dev environment (for testing)
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( (loginResult != null && loginResult.isAdministrator())
    ||   !GWT.isScript()
    ) {
      buttons.add(detailsButton);
    }
   
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult

    super.setSpacing(5);
   
    boolean isAdmin = false;
   
    if ( PortalControl.getInstance().getLoginResult() != null ) {
      LoginResult loginResult = PortalControl.getInstance().getLoginResult();
      isAdmin =  loginResult.isAdministrator();
    }

    add(preambleHtml);
   
    if ( ! isAdmin ) {
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult

    add(infoTextArea);
  }


  private void _prepareUsers() {
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( loginResult == null || ! loginResult.isAdministrator() ) {
      statusHtml.setHTML("<font color=\"red\">Only an admin can run this.</font>");
      return;
    }
    Orr.log("_prepareUsers called.");
   
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.