public void setAuthenticInfo(boolean needAuthentic,
            String usrName,
            String usrPassWord) {
        if (needAuthentic) {
            if (TStringUtils.isBlank(usrName)) {
                throw new IllegalArgumentException("Illegal parameter: usrName is Blank!");
            }
            if (TStringUtils.isBlank(usrPassWord)) {
                throw new IllegalArgumentException("Illegal parameter: usrPassWord is Blank!");
            }
        }
        this.enableUserAuthentic = needAuthentic;
        if (this.enableUserAuthentic) {
            this.usrName = usrName;
            this.usrPassWord = usrPassWord;
        } else {
            this.usrName = "";
            this.usrPassWord = "";
        }
    }
Set authenticate information

@param needAuthentic   enable or disable authentication
@param usrName         the user name
@param usrPassWord     the password
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/config/TubeClientConfig.java