def findCheckerFactory(authType):
 for factory in findCheckerFactories():
  if (factory.authType == authType):
   return factory
 raise InvalidAuthType(authType)

def findCheckerFactory ( authType ) : for factory in findCheckerFactories ( ) : if ( factory . authType == authType ) : return factory raise InvalidAuthType ( authType )
find the first checker factory that supports the given authtype .