• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

contrib/opal/ZSI/build/lib/ZSI/wstools/Namespaces.py

00001 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
00002 #
00003 # This software is subject to the provisions of the Zope Public License,
00004 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
00005 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00006 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00007 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00008 # FOR A PARTICULAR PURPOSE.
00009 """Namespace module, so you don't need PyXML 
00010 """
00011 
00012 ident = "$Id: Namespaces.py 1160 2006-03-17 19:28:11Z boverhof $"
00013 try:
00014     from xml.ns import SOAP, SCHEMA, WSDL, XMLNS, DSIG, ENCRYPTION
00015     DSIG.C14N       = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
00016     
00017 except:
00018     class SOAP:
00019         ENV         = "http://schemas.xmlsoap.org/soap/envelope/"
00020         ENC         = "http://schemas.xmlsoap.org/soap/encoding/"
00021         ACTOR_NEXT  = "http://schemas.xmlsoap.org/soap/actor/next"
00022 
00023     class SCHEMA:
00024         XSD1        = "http://www.w3.org/1999/XMLSchema"
00025         XSD2        = "http://www.w3.org/2000/10/XMLSchema"
00026         XSD3        = "http://www.w3.org/2001/XMLSchema"
00027         XSD_LIST    = [ XSD1, XSD2, XSD3 ]
00028         XSI1        = "http://www.w3.org/1999/XMLSchema-instance"
00029         XSI2        = "http://www.w3.org/2000/10/XMLSchema-instance"
00030         XSI3        = "http://www.w3.org/2001/XMLSchema-instance"
00031         XSI_LIST    = [ XSI1, XSI2, XSI3 ]
00032         BASE        = XSD3
00033 
00034     class WSDL:
00035         BASE        = "http://schemas.xmlsoap.org/wsdl/"
00036         BIND_HTTP   = "http://schemas.xmlsoap.org/wsdl/http/"
00037         BIND_MIME   = "http://schemas.xmlsoap.org/wsdl/mime/"
00038         BIND_SOAP   = "http://schemas.xmlsoap.org/wsdl/soap/"
00039         BIND_SOAP12 = "http://schemas.xmlsoap.org/wsdl/soap12/"
00040 
00041     class XMLNS:
00042         BASE        = "http://www.w3.org/2000/xmlns/"
00043         XML         = "http://www.w3.org/XML/1998/namespace"
00044         HTML        = "http://www.w3.org/TR/REC-html40"
00045 
00046     class DSIG:
00047         BASE         = "http://www.w3.org/2000/09/xmldsig#"
00048         C14N         = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
00049         C14N_COMM    = "http://www.w3.org/TR/2000/CR-xml-c14n-20010315#WithComments"
00050         C14N_EXCL    = "http://www.w3.org/2001/10/xml-exc-c14n#"
00051         DIGEST_MD2   = "http://www.w3.org/2000/09/xmldsig#md2"
00052         DIGEST_MD5   = "http://www.w3.org/2000/09/xmldsig#md5"
00053         DIGEST_SHA1  = "http://www.w3.org/2000/09/xmldsig#sha1"
00054         ENC_BASE64   = "http://www.w3.org/2000/09/xmldsig#base64"
00055         ENVELOPED    = "http://www.w3.org/2000/09/xmldsig#enveloped-signature"
00056         HMAC_SHA1    = "http://www.w3.org/2000/09/xmldsig#hmac-sha1"
00057         SIG_DSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#dsa-sha1"
00058         SIG_RSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
00059         XPATH        = "http://www.w3.org/TR/1999/REC-xpath-19991116"
00060         XSLT         = "http://www.w3.org/TR/1999/REC-xslt-19991116"
00061 
00062     class ENCRYPTION:
00063         BASE    = "http://www.w3.org/2001/04/xmlenc#"
00064         BLOCK_3DES    = "http://www.w3.org/2001/04/xmlenc#des-cbc"
00065         BLOCK_AES128    = "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
00066         BLOCK_AES192    = "http://www.w3.org/2001/04/xmlenc#aes192-cbc"
00067         BLOCK_AES256    = "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
00068         DIGEST_RIPEMD160    = "http://www.w3.org/2001/04/xmlenc#ripemd160"
00069         DIGEST_SHA256    = "http://www.w3.org/2001/04/xmlenc#sha256"
00070         DIGEST_SHA512    = "http://www.w3.org/2001/04/xmlenc#sha512"
00071         KA_DH    = "http://www.w3.org/2001/04/xmlenc#dh"
00072         KT_RSA_1_5    = "http://www.w3.org/2001/04/xmlenc#rsa-1_5"
00073         KT_RSA_OAEP    = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"
00074         STREAM_ARCFOUR    = "http://www.w3.org/2001/04/xmlenc#arcfour"
00075         WRAP_3DES    = "http://www.w3.org/2001/04/xmlenc#kw-3des"
00076         WRAP_AES128    = "http://www.w3.org/2001/04/xmlenc#kw-aes128"
00077         WRAP_AES192    = "http://www.w3.org/2001/04/xmlenc#kw-aes192"
00078         WRAP_AES256    = "http://www.w3.org/2001/04/xmlenc#kw-aes256"
00079 
00080 
00081 class WSRF_V1_2:
00082     '''OASIS WSRF Specifications Version 1.2
00083     '''
00084     class LIFETIME:
00085         XSD_DRAFT1 = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
00086         XSD_DRAFT4 = "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.xsd"
00087 
00088         WSDL_DRAFT1 = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
00089         WSDL_DRAFT4 = "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.wsdl"
00090         LATEST = WSDL_DRAFT4
00091         WSDL_LIST = (WSDL_DRAFT1, WSDL_DRAFT4)
00092         XSD_LIST = (XSD_DRAFT1, XSD_DRAFT4)
00093 
00094     class PROPERTIES:
00095         XSD_DRAFT1 = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
00096         XSD_DRAFT5 = "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd"
00097 
00098         WSDL_DRAFT1 = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
00099         WSDL_DRAFT5 = "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.wsdl"
00100         LATEST = WSDL_DRAFT5
00101         WSDL_LIST = (WSDL_DRAFT1, WSDL_DRAFT5)
00102         XSD_LIST = (XSD_DRAFT1, XSD_DRAFT5)
00103 
00104     class BASENOTIFICATION:
00105         XSD_DRAFT1 = "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd"
00106 
00107         WSDL_DRAFT1 = "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl"
00108         LATEST = WSDL_DRAFT1
00109         WSDL_LIST = (WSDL_DRAFT1,)
00110         XSD_LIST = (XSD_DRAFT1,)
00111 
00112     class BASEFAULTS:
00113         XSD_DRAFT1 = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
00114         XSD_DRAFT3 = "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-BaseFaults-1.2-draft-03.xsd"
00115         #LATEST = DRAFT3
00116         #WSDL_LIST = (WSDL_DRAFT1, WSDL_DRAFT3)
00117         XSD_LIST = (XSD_DRAFT1, XSD_DRAFT3)
00118 
00119 WSRF = WSRF_V1_2
00120 WSRFLIST = (WSRF_V1_2,)
00121 
00122 
00123 class OASIS:
00124     '''URLs for Oasis specifications
00125     '''
00126     WSSE    = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
00127     UTILITY = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
00128     
00129     class X509TOKEN:
00130         Base64Binary = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
00131         STRTransform = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0"
00132         PKCS7 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#PKCS7"
00133         X509 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509"
00134         X509PKIPathv1 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1"
00135         X509v3SubjectKeyIdentifier = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3SubjectKeyIdentifier"
00136         
00137     LIFETIME = WSRF_V1_2.LIFETIME.XSD_DRAFT1
00138     PROPERTIES = WSRF_V1_2.PROPERTIES.XSD_DRAFT1
00139     BASENOTIFICATION = WSRF_V1_2.BASENOTIFICATION.XSD_DRAFT1
00140     BASEFAULTS = WSRF_V1_2.BASEFAULTS.XSD_DRAFT1
00141 
00142 
00143 class WSTRUST:
00144     BASE = "http://schemas.xmlsoap.org/ws/2004/04/trust"
00145     ISSUE = "http://schemas.xmlsoap.org/ws/2004/04/trust/Issue"
00146 
00147 class WSSE:
00148     BASE    = "http://schemas.xmlsoap.org/ws/2002/04/secext"
00149     TRUST   = WSTRUST.BASE
00150 
00151 
00152 class WSU:
00153     BASE    = "http://schemas.xmlsoap.org/ws/2002/04/utility"
00154     UTILITY = "http://schemas.xmlsoap.org/ws/2002/07/utility"
00155 
00156 
00157 class WSR:
00158     PROPERTIES = "http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceProperties"
00159     LIFETIME   = "http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceLifetime"
00160 
00161 
00162 class WSA200408:
00163     ADDRESS    = "http://schemas.xmlsoap.org/ws/2004/08/addressing"
00164     ANONYMOUS  = "%s/role/anonymous" %ADDRESS
00165     FAULT      = "%s/fault" %ADDRESS
00166 
00167 class WSA200403:
00168     ADDRESS    = "http://schemas.xmlsoap.org/ws/2004/03/addressing"
00169     ANONYMOUS  = "%s/role/anonymous" %ADDRESS
00170     FAULT      = "%s/fault" %ADDRESS
00171 
00172 class WSA200303:
00173     ADDRESS    = "http://schemas.xmlsoap.org/ws/2003/03/addressing"
00174     ANONYMOUS  = "%s/role/anonymous" %ADDRESS
00175     FAULT      = None
00176 
00177 
00178 WSA = WSA200408
00179 WSA_LIST = (WSA200408, WSA200403, WSA200303)
00180 
00181 class WSP:
00182     POLICY = "http://schemas.xmlsoap.org/ws/2002/12/policy"
00183 
00184 class BEA:
00185     SECCONV = "http://schemas.xmlsoap.org/ws/2004/04/sc"
00186     SCTOKEN = "http://schemas.xmlsoap.org/ws/2004/04/security/sc/sct"
00187 
00188 class GLOBUS:
00189     SECCONV = "http://wsrf.globus.org/core/2004/07/security/secconv"
00190     CORE    = "http://www.globus.org/namespaces/2004/06/core"
00191     SIG     = "http://www.globus.org/2002/04/xmlenc#gssapi-sign"
00192     TOKEN   = "http://www.globus.org/ws/2004/09/security/sc#GSSAPI_GSI_TOKEN"
00193 
00194 ZSI_SCHEMA_URI = 'http://www.zolera.com/schemas/ZSI/'

Generated on Wed Oct 20 2010 11:12:16 for APBS by  doxygen 1.7.2