Source code for vmware.vapi.security.rest

"""
Security context parser interface for REST presentation layer
"""

__author__ = 'VMware, Inc.'
__copyright__ = 'Copyright (c) 2015 VMware, Inc.  All rights reserved.'


[docs]class SecurityContextParser(object): """ Base class for all security context builders """
[docs] def build(self, request): """ Build the security context based on the authentication information in the request. :type request: :class:`werkzeug.wrappers.Request` :param request: Request object :rtype: :class:`vmware.vapi.core.SecurityContext` :return: Security context object """ pass