code: public static SimpleConnectionAuthenticator getAuthenticationRequest(String userName, String password)
      {
          SimpleConnectionAuthenticator authenticator = null;
          if (userName != null || password != null)
          {
              authenticator = new SimpleConnectionAuthenticator(userName, password);
          }
          return authenticator;
      }
docs: If userName and password provided, Method prepares for
  AuthenticationRequest.
  
  @param props
  properties
  
  @return simple authenticator request. returns null if userName/password
  are not provided.