ó
f#ñ]c           @  sL  d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 j
 j Z e j
 j j d ƒ Z d Z e j e k r² e j e ƒ ‚ n  e j
 j j ƒ  Z d  d l Z d  d l Z d  d l Z d  d l Z e j j d d e ƒZ e j d d g ƒ e j j j  j Z! e! j d d g ƒ e j j j" j Z# e# j d d g ƒ e j j$ j% j Z& e& j d d g ƒ d d d	 „ Z( d d
 „ Z) d e j* j+ j, f d „  ƒ  YZ- e- e _- e j. d d e- ƒ d e j* j+ j, f d „  ƒ  YZ/ e/ e _/ e j. d d e/ ƒ d e j* j+ j, f d „  ƒ  YZ0 e0 e _0 e j. d d e0 ƒ e j* j+ j1 e j j2 e d ƒ e- d e j
 j j3 d d d ƒ ƒZ4 e j. d e4 j5 ƒ  j6 ƒ  e4 ƒ e j* j+ j1 e j j2 e d ƒ e/ d e j
 j j3 d d d ƒ ƒZ7 e j. d e7 j5 ƒ  j6 ƒ  e7 ƒ e j* j+ j1 e j j2 e d ƒ e0 d e j
 j j3 d d d ƒ ƒZ8 e j. d e8 j5 ƒ  j6 ƒ  e8 ƒ e- j9 e j* j+ j1 e j j2 e! d ƒ e j j j  j: d e- d e j
 j j3 d d  d ƒ ƒƒ e- j9 e j* j+ j1 e j j2 e# d! ƒ e j j j" j; d e- d e j
 j j3 d" d# d ƒ ƒƒ d$ „  a< t< ƒ  e- _= d S(%   iÿÿÿÿ(   t   unicode_literalsNu-   urn:uuid:62632660-9099-11e7-b77e-3497f68b2e96u   1.2.6u,   urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecpt   create_if_missingu   typeBindingu   elementBindingc         C  sÒ   t  j t  j k r: t  j j j |  ƒ } t | j d | ƒS| d k rU t	 j
 ƒ  } n  t  j j j d | d | ƒ } | j ƒ  } |  } t | t j ƒ r¬ | j t  j ƒ } n  | j t j | ƒ ƒ | j ƒ  } | S(   uý  Parse the given XML and use the document element to create a
    Python instance.

    @param xml_text An XML document.  This should be data (Python 2
    str or Python 3 bytes), or a text (Python 2 unicode or Python 3
    str) in the L{pyxb._InputEncoding} encoding.

    @keyword default_namespace The L{pyxb.Namespace} instance to use as the
    default namespace where there is no default namespace in scope.
    If unspecified or C{None}, the namespace of the module containing
    this function will be used.

    @keyword location_base: An object to be recorded as the base of all
    L{pyxb.utils.utility.Location} instances associated with events and
    objects handled by the parser.  You might pass the URI from which
    the document was obtained.
    t   default_namespacet   fallback_namespacet   location_baseN(   t   pyxbt   XMLStyle_saxert	   _XMLStylet   utilst   domutilst   StringToDOMt   CreateFromDOMt   documentElementt   Nonet	   Namespacet   fallbackNamespacet   bindingt   saxert   make_parsert   getContentHandlert
   isinstancet   _sixt	   text_typet   encodet   _InputEncodingt   parset   iot   BytesIOt
   rootObject(   t   xml_textR   R   t   domR   t   handlert   xmldt   instance(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyt   CreateFromDocument-   s    c         C  s4   | d k r t j ƒ  } n  t j j j j |  | ƒ S(   uÖ   Create a Python instance from the given DOM node.
    The node tag must correspond to an element declaration in this module.

    @deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}.N(   R   R   R   R   R   t   basist   elementt   AnyCreateFromDOM(   t   nodeR   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyR   N   s    t   RequestTypec        	   B  sÓ  e  Z d  Z d Z e j j j j	 Z
 e Z e j j e d ƒ Z e j j j d d d ƒ Z i  Z i  Z e j j j e j j e d ƒ d d e e j j j d d d ƒ ƒ Z e e j e j d d ƒ Z e j j j e j j e d	 ƒ d	 d
 e e j j j d d d ƒ ƒ Z  e e  j e  j d d ƒ Z! e j j j" e j j e# d ƒ d d e j$ j% j& j' d e( ƒZ) e j j j d d d ƒ e) _* e j j j d d d ƒ e) _+ e e) j e) j d d ƒ Z, e j j j" e j j e# d ƒ d d e j j- j. d e( ƒZ/ e j j j d d d ƒ e/ _* e j j j d d d ƒ e/ _+ e e/ j e/ j d d ƒ Z0 e j j j" e j j d d ƒ d d e j j- j1 ƒ Z2 e j j j d d d ƒ e2 _* e j j j d d d ƒ e2 _+ e e2 j e2 j d d ƒ Z3 e j j j" e j j d d ƒ d d e j j- j4 ƒ Z5 e j j j d d d ƒ e5 _* e j j j d d d ƒ e5 _+ e e5 j e5 j d d ƒ Z6 e j7 i e e j8 ƒ  6e  e  j8 ƒ  6ƒ e j7 i e) e) j8 ƒ  6e/ e/ j8 ƒ  6e2 e2 j8 ƒ  6e5 e5 j8 ƒ  6ƒ RS(    ue   Complex type {urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp}RequestType with content type ELEMENT_ONLYu   RequestTypeuD   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/ecp.xsdi   i   u   IssueruX   __urnoasisnamestcSAML2_0profilesSSOecp_RequestType_urnoasisnamestcSAML2_0assertionIssueruJ   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/assertion.xsdi6   u   IDPListuX   __urnoasisnamestcSAML2_0profilesSSOecp_RequestType_urnoasisnamestcSAML2_0protocolIDPListuI   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/protocol.xsdi¼   u   mustUnderstandud   __urnoasisnamestcSAML2_0profilesSSOecp_RequestType_httpschemas_xmlsoap_orgsoapenvelopemustUnderstandt   requireduH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/soap11.xsdiK   i   i#   i   u   actoru[   __urnoasisnamestcSAML2_0profilesSSOecp_RequestType_httpschemas_xmlsoap_orgsoapenvelopeactoriR   i$   u   ProviderNameu?   __urnoasisnamestcSAML2_0profilesSSOecp_RequestType_ProviderNamei%   u	   IsPassiveu<   __urnoasisnamestcSAML2_0profilesSSOecp_RequestType_IsPassivei&   N(9   t   __name__t
   __module__t   __doc__R   t   _TypeDefinitionR   R   R#   t   complexTypeDefinitiont   _CT_ELEMENT_ONLYt   _ContentTypeTagt   Falset	   _Abstractt	   namespacet   ExpandedNameR   t   _ExpandedNameR   t   utilityt   Locationt   _XSDLocationt   _ElementMapt   _AttributeMapt   contentt   ElementDeclarationt   _Namespace_samlt   _RequestType__Issuert   propertyt   valuet   sett   Issuert   _Namespace_samlpt   _RequestType__IDPListt   IDPListt   AttributeUset   _Namespace_St   bundlest   wssplatt   soap11t   STD_ANONt   Truet   _RequestType__mustUnderstandt   _DeclarationLocationt   _UseLocationt   mustUnderstandt	   datatypest   anyURIt   _RequestType__actort   actort   stringt   _RequestType__ProviderNamet   ProviderNamet   booleant   _RequestType__IsPassivet	   IsPassivet   updatet   name(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyR'   Y   sH   EE?<66		u   RequestTypet   ResponseTypec           B  se  e  Z d  Z d Z e j j j j	 Z
 e Z e j j e d ƒ Z e j j j d d d ƒ Z i  Z i  Z e j j j e j j e d ƒ d d e j j j j d e ƒZ e j j j d d	 d
 ƒ e _  e j j j d d d ƒ e _! e" e j# e j$ d d ƒ Z% e j j j e j j e d ƒ d d e j j& j' d e ƒZ( e j j j d d d
 ƒ e( _  e j j j d d d ƒ e( _! e" e( j# e( j$ d d ƒ Z) e j j j e j j d d ƒ d d e j j& j' d e ƒZ* e j j j d d d ƒ e* _  e j j j d d d ƒ e* _! e" e* j# e* j$ d d ƒ Z+ e j, i  ƒ e j, i e e j- ƒ  6e( e( j- ƒ  6e* e* j- ƒ  6ƒ RS(   u_   Complex type {urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp}ResponseType with content type EMPTYu   ResponseTypeuD   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/ecp.xsdi*   i   u   mustUnderstandue   __urnoasisnamestcSAML2_0profilesSSOecp_ResponseType_httpschemas_xmlsoap_orgsoapenvelopemustUnderstandR(   uH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/soap11.xsdiK   i   i+   i   u   actoru\   __urnoasisnamestcSAML2_0profilesSSOecp_ResponseType_httpschemas_xmlsoap_orgsoapenvelopeactoriR   i,   u   AssertionConsumerServiceURLuO   __urnoasisnamestcSAML2_0profilesSSOecp_ResponseType_AssertionConsumerServiceURLi-   N(.   R)   R*   R+   R   R,   R   R   R#   R-   t	   _CT_EMPTYR/   R0   R1   R2   R3   R   R4   R   R5   R6   R7   R8   R9   R:   RE   RF   RG   RH   RI   RJ   RK   t   _ResponseType__mustUnderstandRM   RN   R>   R?   R@   RO   RP   RQ   t   _ResponseType__actorRS   t*   _ResponseType__AssertionConsumerServiceURLt   AssertionConsumerServiceURLRZ   R[   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyR\       s2   ?<<	u   ResponseTypet   RelayStateTypec           B  sÎ  e  Z d  Z e j j j Z e j j j	 j
 Z e Z e j j e d ƒ Z e j j j d d d ƒ Z i  Z i  Z e j j j e j j e d ƒ d d e j j j j d e ƒZ  e j j j d d	 d
 ƒ e  _! e j j j d d d ƒ e  _" e# e  j$ e  j% d d ƒ Z' e j j j e j j e d ƒ d d e j j j( d e ƒZ) e j j j d d d
 ƒ e) _! e j j j d d d ƒ e) _" e# e) j$ e) j% d d ƒ Z* e j+ i  ƒ e j+ i e  e  j, ƒ  6e) e) j, ƒ  6ƒ RS(   ub   Complex type {urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp}RelayStateType with content type SIMPLEu   RelayStateTypeuD   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/ecp.xsdi1   i   u   mustUnderstandug   __urnoasisnamestcSAML2_0profilesSSOecp_RelayStateType_httpschemas_xmlsoap_orgsoapenvelopemustUnderstandR(   uH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/soap11.xsdiK   i   i4   i   u   actoru^   __urnoasisnamestcSAML2_0profilesSSOecp_RelayStateType_httpschemas_xmlsoap_orgsoapenvelopeactoriR   i5   N(-   R)   R*   R+   R   R   RP   RT   R,   R#   R-   t
   _CT_SIMPLER/   R0   R1   R2   R3   R   R4   R   R5   R6   R7   R8   R9   R:   RE   RF   RG   RH   RI   RJ   RK   t   _RelayStateType__mustUnderstandRM   RN   R>   R?   R@   R   RO   RQ   t   _RelayStateType__actorRS   RZ   R[   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyRb   Ï   s(   ?<	u   RelayStateTypeu   Requestt   locationuD   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/ecp.xsdi   i   u   Responsei)   u
   RelayStatei0   u   Issuert   scopeuJ   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/assertion.xsdi6   u   IDPListuI   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/protocol.xsdi¼   c    	   
   C  sõ  b  d d  l j j }  t ƒ  } |  j d d d d d t j j j d d d	 ƒ ƒ } | j	 | ƒ g  } t ƒ  } t j
 j j t j t j j t d
 ƒ ƒ t j j j d d d	 ƒ ƒ } |  j | d t d | d t ƒ} | j | ƒ t ƒ  } | j	 |  j | t ƒ ƒ t j
 j j t j t j j t d ƒ ƒ t j j j d d d	 ƒ ƒ } |  j | d t d | d t ƒ} | j | ƒ g  } | j |  j | g  ƒ ƒ | j | ƒ g  } | j |  j | |  j | t ƒ g ƒ ƒ | j | ƒ |  j | | t d d  ƒS(   Niÿÿÿÿt   mini    t   maxi   t   metadatauD   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/ecp.xsdi!   i   u   Issueri    t
   is_initialt   final_updatet   is_unordered_catenationu   IDPListt   containing_state(   t   _BuildAutomatont   pyxb.utils.facR   t   facR@   t   CounterConditionR   R5   R6   t   addR   R:   t
   ElementUseR'   t
   _UseForTagR2   R3   R<   t   StateRK   R0   t   appendt   UpdateInstructionRB   t
   Transitiont   _set_transitionSett	   AutomatonR   (	   Rq   t   counterst   cc_0t   statesRl   t   symbolt   st_0t   st_1t   transitions(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyRo     s.    	3	E!	E!(>   t
   __future__R    R   t   pyxb.bindingt   pyxb.binding.saxerR   t   pyxb.utils.utilityt   pyxb.utils.domutilst   syst   pyxb.utils.sixR   t   sixR   R5   t   UniqueIdentifiert   _GenerationUIDt   _PyXBVersiont   __version__t   PyXBVersionErrort   Objectt   _module_typeBindingst   pyxb.bundles.saml20.protocolt   pyxb.bundles.wssplat.soap11t   pyxb.binding.datatypest   pyxb.bundles.saml20.assertionR2   t   NamespaceForURIRK   R   t   configureCategoriesRG   t   saml20t	   assertionR<   t   protocolRB   RH   RI   RF   R   R"   R   R   R#   R-   R'   t   addCategoryObjectR\   Rb   R$   R3   R6   t   RequestR[   t	   localNamet   Responset
   RelayStatet   _AddElementt
   NameIDTypet   IDPListTypeRo   t
   _Automaton(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/ecp.pyt   <module>   s\   !B	*	!	BBB[[	