parameters: (self, cryptoID=None, protocol=None,
                   x509Fingerprint=None,
                   x509TrustList=None, x509CommonName=None,
                   checkResumedSession=False)
docstring: Create a new Checker instance.
  
          You must pass in one of these argument combinations:
           - cryptoID[, protocol] (requires cryptoIDlib)
           - x509Fingerprint
           - x509TrustList[, x509CommonName] (requires cryptlib_py)
  
          @type cryptoID: str
          @param cryptoID: A cryptoID which the other party's certificate
          chain must match.  The cryptoIDlib module must be installed.
          Mutually exclusive with all of the 'x509...' arguments.
  
          @type protocol: str
          @param protocol: A cryptoID protocol URI which the other
          party's certificate chain must match.  Requires the 'cryptoID'
          argument.
  
          @type x509Fingerprint: str
          @param x509Fingerprint: A hex-encoded X.509 end-entity
          fingerprint which the other party's end-entity certificate must
          match.  Mutually exclusive with the 'cryptoID' and
          'x509TrustList' arguments.
  
          @type x509TrustList: list of L{tlslite.X509.X509}
          @param x509TrustList: A list of trusted root certificates.  The
          other party must present a certificate chain which extends to
          one of these root certificates.  The cryptlib_py module must be
          installed.  Mutually exclusive with the 'cryptoID' and
          'x509Fingerprint' arguments.
  
          @type x509CommonName: str
          @param x509CommonName: The end-entity certificate's 'CN' field
          must match this value.  For a web server, this is typically a
          server name such as 'www.amazon.com'.  Mutually exclusive with
          the 'cryptoID' and 'x509Fingerprint' arguments.  Requires the
          'x509TrustList' argument.
  
          @type checkResumedSession: bool
          @param checkResumedSession: If resumed sessions should be
          checked.  This defaults to False, on the theory that if the
          session was checked once, we don't need to bother
          re-checking it.
docstring_summary: Create a new Checker instance.
docstring_tokens: Create a new Checker instance .
function: def __init__(self, cryptoID=None, protocol=None,
                   x509Fingerprint=None,
                   x509TrustList=None, x509CommonName=None,
                   checkResumedSession=False):
          """Create a new Checker instance.
  
          You must pass in one of these argument combinations:
           - cryptoID[, protocol] (requires cryptoIDlib)
           - x509Fingerprint
           - x509TrustList[, x509CommonName] (requires cryptlib_py)
  
          @type cryptoID: str
          @param cryptoID: A cryptoID which the other party's certificate
          chain must match.  The cryptoIDlib module must be installed.
          Mutually exclusive with all of the 'x509...' arguments.
  
          @type protocol: str
          @param protocol: A cryptoID protocol URI which the other
          party's certificate chain must match.  Requires the 'cryptoID'
          argument.
  
          @type x509Fingerprint: str
          @param x509Fingerprint: A hex-encoded X.509 end-entity
          fingerprint which the other party's end-entity certificate must
          match.  Mutually exclusive with the 'cryptoID' and
          'x509TrustList' arguments.
  
          @type x509TrustList: list of L{tlslite.X509.X509}
          @param x509TrustList: A list of trusted root certificates.  The
          other party must present a certificate chain which extends to
          one of these root certificates.  The cryptlib_py module must be
          installed.  Mutually exclusive with the 'cryptoID' and
          'x509Fingerprint' arguments.
  
          @type x509CommonName: str
          @param x509CommonName: The end-entity certificate's 'CN' field
          must match this value.  For a web server, this is typically a
          server name such as 'www.amazon.com'.  Mutually exclusive with
          the 'cryptoID' and 'x509Fingerprint' arguments.  Requires the
          'x509TrustList' argument.
  
          @type checkResumedSession: bool
          @param checkResumedSession: If resumed sessions should be
          checked.  This defaults to False, on the theory that if the
          session was checked once, we don't need to bother
          re-checking it.
          """
  
          if cryptoID and (x509Fingerprint or x509TrustList):
              raise ValueError()
          if x509Fingerprint and x509TrustList:
              raise ValueError()
          if x509CommonName and not x509TrustList:
              raise ValueError()
          if protocol and not cryptoID:
              raise ValueError()
          if cryptoID:
              import cryptoIDlib #So we raise an error here
          if x509TrustList:
              import cryptlib_py #So we raise an error here
          self.cryptoID = cryptoID
          self.protocol = protocol
          self.x509Fingerprint = x509Fingerprint
          self.x509TrustList = x509TrustList
          self.x509CommonName = x509CommonName
          self.checkResumedSession = checkResumedSession
function_tokens: def __init__ ( self , cryptoID = None , protocol = None , x509Fingerprint = None , x509TrustList = None , x509CommonName = None , checkResumedSession = False ) : if cryptoID and ( x509Fingerprint or x509TrustList ) : raise ValueError ( ) if x509Fingerprint and x509TrustList : raise ValueError ( ) if x509CommonName and not x509TrustList : raise ValueError ( ) if protocol and not cryptoID : raise ValueError ( ) if cryptoID : import cryptoIDlib #So we raise an error here if x509TrustList : import cryptlib_py #So we raise an error here self . cryptoID = cryptoID self . protocol = protocol self . x509Fingerprint = x509Fingerprint self . x509TrustList = x509TrustList self . x509CommonName = x509CommonName self . checkResumedSession = checkResumedSession