(String userName)
| 58 | } |
| 59 | |
| 60 | public static String userNameEncode(String userName) { |
| 61 | int s1 = userName.length() / 2; |
| 62 | int s2 = (s1 + 1) / 2; |
| 63 | return userName.substring(0, s2) |
| 64 | + String.join("", Collections.nCopies(s1, "*")) |
| 65 | + userName.substring(s1 + s2); |
| 66 | } |
| 67 | |
| 68 | public static String utcTime(String utcTime){ |
| 69 | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); |