Package anvil.server

Examples of anvil.server.Citizen.verifyCredentials()


          if (citizen == null) {
            context.log().info("basic: login="+username);
            citizen = realm.getCitizen(username);
          }
          if (citizen != null) {
            if (citizen.verifyCredentials(password)) {
              context.setCitizen(citizen);
              context.log().info("basic: authentication ok");
              authenticated = true;
            } else {
              context.log().info("basic: authentication failed");
View Full Code Here


      context.getSession().removeAttribute("webauth.failedUser");
     
      if (username != null && password != null && username.length() > 0) {
        citizen = realm.getCitizen(username);
        context.log().info("username: '"+username+"' citizen: "+citizen);
        if (citizen != null && citizen.verifyCredentials(password)) {
          context.setCitizen(citizen);
          context.log().info("web: authentication ok");
         
          if (context.getOriginalPathinfo().equals(loginPath)) {
            throw new RedirectException(context.getSession().getId(), forwardPath);
View Full Code Here

      Realm realm = zone.getRealm(realmName);
      if (realm != null) {
        Citizen citizen = realm.getCitizen(name);
        if (citizen != null) {
          if (credentials != null) {     
            if (citizen.verifyCredentials(credentials)) {
              return new AnyCitizen(citizen);
            }
          } else {
            return new AnyCitizen(citizen);
          }
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.