class_docstr: A Swagger documentation wrapper for an API instance.
class_docstr_tok: ["A","Swagger","documentation","wrapper","for","an","API","instance","."]
code: def security_for(self, doc, method):
      security = None
      if "security" in doc:
          auth = doc["security"]
          security = self.security_requirements(auth)
  
      if "security" in doc[method]:
          auth = doc[method]["security"]
          security = self.security_requirements(auth)
  
      return security
  
imports: from __future__ import unicode_literals, absolute_import
  import itertools
  import re
  from inspect import isclass, getdoc
  from six import string_types, itervalues, iteritems, iterkeys
  from flask import current_app
  from werkzeug.routing import parse_rule
  from .None import fields
  from .model import Model, ModelBase
  from .reqparse import RequestParser
  from .utils import merge, not_none, not_none_sorted
  from ._http import HTTPStatus
label_desc: Use image node_id 20 for calling the Swagger obj's underlying member method code with example usage: obj.security_for(doc, method) and returns: security