Class RandomStrUtil

java.lang.Object
com.luna.common.text.RandomStrUtil

public class RandomStrUtil extends Object
随机字符串
Author:
luna
  • Constructor Details

    • RandomStrUtil

      public RandomStrUtil()
  • Method Details

    • generateNonceStrWithUUID

      public static String generateNonceStrWithUUID()
    • getUUID

      public static String getUUID()
    • generateNonceStr

      public static String generateNonceStr(int size)
      获取随机字符串 Nonce Str
      Returns:
      String 随机字符串
    • generateNonceStr

      public static String generateNonceStr()
      获取随机字符串 Nonce Str
      Returns:
      String 随机字符串
    • getValidationCode

      public static String getValidationCode()
      获取6位随机验证码
      Returns: