Package org.openquark.cal.services

Examples of org.openquark.cal.services.IdentifierUtils$ValidationStatus


    String password = querySpec.getCandidatePassword();
    if (password.matches(".*[a-z].*") && password.matches(".*[A-Z].*")
        && password.matches(".*[0-9].*")) {
      return null;
    } else {
      ValidationStatus vs=new ValidationStatus();
      try {
        vs.setStatusCode(validationStatusCode);
        vs.setExplanation(explanation);
        vs.setDescription(description);
      } catch (EnterpriseFieldException e) {
        e.printStackTrace();
        throw new PasswordValidationException(e.getMessage());
      }
      return vs;
View Full Code Here


    }
    int l = querySpec.getCandidatePassword().length();
    if (l>=minimum && l<=maximum) {
      return null;
    } else {
      ValidationStatus vs=new ValidationStatus();
      try {
        vs.setStatusCode(validationStatusCode);
        vs.setExplanation(explanation);
        if (l<minimum) {
          vs.setDescription(minimumLengthDescription);
        }
        if (l>maximum) {
          vs.setDescription(maximumLengthDescription);
        }
      } catch (EnterpriseFieldException e) {
        e.printStackTrace();
        throw new PasswordValidationException(e.getMessage());
      }
View Full Code Here

      if (myIdType.equalsIgnoreCase(idType)) {
        System.out.println("ID match");
        String idValue = id.getValue();
        System.out.println("value="+idValue);
        if (password.indexOf(idValue)!=-1) {
          ValidationStatus vs=new ValidationStatus();
          try {
            vs.setStatusCode(validationStatusCode);
            vs.setExplanation(explanation);
            vs.setDescription(description);
          } catch (EnterpriseFieldException e) {
            e.printStackTrace();
            throw new PasswordValidationException(e.getMessage());
          }
          return vs;         
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.IdentifierUtils$ValidationStatus

Copyright © 2018 www.massapicom. 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.