code: private void configureAuthentication(String username, String password, String realm) {
  
          // If the username is set, set up authentication:
          if (StringUtils.isNotBlank(username)) {
  
              this.username = username;
              this.password = password;
              this.realm = StringUtils.defaultIfBlank(realm, "restolino");
  
              authenticationEnabled = true;
          }
      }
docs: Sets up authentication.
  
  @param username The HTTP basic authentication username.
  @param password The HTTP basic authentication password.
  @param realm    Optional. Defaults to "restolino".