docstr: Validates credentials according to specified methods if they
  are what expected.
  
  Parameters
  ----------
  method: str
      Authentication method name.
  
  Returns
  -------
  bool
      True if credentials are valid.
      False otherwise.
docstr_tok: ["Validates","credentials","according","to","specified","methods","if","they","are","what","expected",".","Parameters","--","--","--","--","--","method",":","str","Authentication","method","name",".","Returns","--","--","--","-","bool","True","if","credentials","are","valid",".","False","otherwise","."]
code: def _validate_credentials(self, method) -> bool:
      """
      Validates credentials according to specified methods if they
      are what expected.
  
      Parameters
      ----------
      method: str
          Authentication method name.
  
      Returns
      -------
      bool
          True if credentials are valid.
          False otherwise.
      """
      if method == "basic-auth":
          return self._validate_basic_auth_credentials()
      # Add new methods here...
  
      # No known methods were found
      self.logger.log(
          logging.CRITICAL,
          f'Unknown authentication method(s) "{method}" are configured ',
      )
      return False
  
imports: import base64
  import binascii
  import concurrent
  import json
  import logging
  import tornado.web
  from tabpy.tabpy_server.app.app_parameters import SettingsParameters
  from tabpy.tabpy_server.handlers.util import hash_password
  from tabpy.tabpy_server.handlers.util import AuthErrorStates
  import uuid
label_desc: Use image node_id 9 for calling the BaseHandler obj's underlying member method code with example usage: obj._validate_credentials(method) and returns: False, self