Examples of PasswordValidationRule


Examples of com.any_service_provider.gateways.pvs.PasswordValidationRule

        for (int i=0;i<rules.size();i++) {
          Properties ruleProps = ((PropertyConfig)rules.get(i)).getProperties();
          String ruleClass = ruleProps.getProperty("ruleClass");
          if (ruleClass!=null) {
            logger.info("[PasswordValidationRequestCommand] Loading validation rule: "+ruleClass);
            PasswordValidationRule rule = (PasswordValidationRule)this.getClass().getClassLoader()
              .loadClass(ruleClass).newInstance();
            rule.setProperites(ruleProps);
            validationRules.add(rule);
            logger.info("[PasswordValidationRequestCommand] "+ruleClass+" loaded.");
          }
        }
      }
View Full Code Here

Examples of com.any_service_provider.gateways.pvs.PasswordValidationRule

        validPassword.setCandidatePassword(candidate);
        validPassword.setIdentifier(querySpec.getIdentifier());
        // Here's where the validation occurs
        for (int i=0;i<validationRules.size();i++) {
          logger.info("[PasswordValidationRequestCommand] Running rule "+i+"...");
          PasswordValidationRule rule=(PasswordValidationRule)validationRules.get(i);
          ValidationStatus status=rule.validate(querySpec);
          if (status!=null) {
            logger.info("[PasswordValidationRequestCommand] Candidate password "+candidate
                +" violates rule "+i+", "+rule.getClass().getName());
            validationStatuses.add(status);
          }
        }
        // check for rule violation. If none, return validation status 0
        if (validationStatuses.size()==0) {
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.