This property defines the minimum length for a username.
These properties define username check patterns. A username must match all the defined patterns. The property name begins with user.username.pattern. and ends with the pattern index number. The pattern format follows the Java regular expression syntax. You can learn more about it at the java.util.regex.Pattern API documentation. The actual matching is done against the whole username string and ".*" is appended to the pattern as both prefix and postfix.
In the example above, the username must contain some character from the range a-z or A-Z and also @-character. So, a username of "admin@" would be valid, but "admin" not, because it doesn't contain @-character.
This property defines those characters that can be used in the username. All the characters in the username must match the given regular expression. The difference to the user.username.pattern.N property is that the matching is done character by character, not to the whole username string. The pattern format follows the Java regular expression syntax. You can learn more about it at the java.util.regex.Pattern API documentation.
In the example above, every character in the username must be in the range a-Z or A-Z. So, a username of "admin" would be ok, but a username of "4dm1n" would not, because it contains numbers.