|
@@ -38,6 +38,11 @@ public class RandomRulePwd {
|
|
randomString = RandomUtil.randomString(lowerStr + numStr + specialStr, strLength);
|
|
randomString = RandomUtil.randomString(lowerStr + numStr + specialStr, strLength);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ else if ("A,B,C,D".equals(rule)){
|
|
|
|
+ while (!(StrUtil.containsAny(randomString,upperStr.split("")) && StrUtil.containsAny(randomString,lowerStr.split("")) && StrUtil.containsAny(randomString,numStr.split("")) && StrUtil.containsAny(randomString,specialStr.split("")))){
|
|
|
|
+ randomString = RandomUtil.randomString(upperStr + lowerStr + numStr + specialStr, strLength);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return randomString;
|
|
return randomString;
|
|
}
|
|
}
|
|
}
|
|
}
|