oxs_constants.h

00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License")" "
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 
00018 #ifndef OXS_CONSTANTS_H
00019 #define OXS_CONSTANTS_H
00020 
00021 #ifdef __cplusplus
00022 extern "C"
00023 {
00024 #endif
00025 
00026 /*Default values*/
00027 /*Key transfer algo*/
00028 #define OXS_DEFAULT_KT_ALGO_HREF    OXS_HREF_RSA_PKCS1
00029 #define OXS_DEFAULT_SYM_ALGO        OXS_HREF_AES_256_CBC
00030 #define OXS_STR_DEFAULT             OXS_STR_EMBEDDED
00031 
00032 
00033 /****************************************************************
00034    Global prefixes 
00035 ****************************************************************/
00036 #define OXS_XENC "xenc"
00037 #define OXS_DS "ds"
00038 #define OXS_WSSE "wsse"
00039 
00040 /****************************************************************
00041     ID Prefixes
00042 ****************************************************************/
00043 #define OXS_ENCDATA_ID "EncDataID"
00044 #define OXS_ENCKEY_ID "EncKeyID"
00045 #define OXS_CERT_ID "CertID"
00046 #define OXS_EMBEDDED_ID "EmbeddedID"
00047 
00048 /****************************************************************
00049    Global namespaces 
00050 ****************************************************************/
00051 #define OXS_DSIG_NS                "http://www.w3.org/2000/09/xmldsig#"
00052 #define OXS_ENC_NS                 "http://www.w3.org/2001/04/xmlenc#"
00053 #define OXS_WSSE_NS                "http://schemas.xmlsoap.org/ws/2002/04/secext"
00054 
00055 /****************************************************************
00056     DSig Nodes  
00057 ****************************************************************/
00058 #define OXS_NODE_SIGNATURE         "Signature" 
00059 #define OXS_NODE_SIGNEDINFO        "SignedInfo" 
00060 #define OXS_NODE_CANONICALIZATION_METHOD "CanonicalizationMethod" 
00061 #define OXS_NODE_SIGNATURE_METHOD    "SignatureMethod" 
00062 #define OXS_NODE_SIGNATURE_VALUE     "SignatureValue" 
00063 #define OXS_NODE_DIGEST_METHOD       "DigestMethod" 
00064 #define OXS_NODE_DIGEST_VALUE        "DigestValue" 
00065 #define OXS_NODE_OBJECT             "Object" 
00066 #define OXS_NODE_MANIFEST           "Manifest" 
00067 #define OXS_NODE_SIGNATUREPROPERTIES "SignatureProperties" 
00068 
00069 /****************************************************************
00070    Encryption Nodes 
00071 ****************************************************************/
00072 #define OXS_NODE_ENCRYPTED_DATA             "EncryptedData" 
00073 #define OXS_NODE_ENCRYPTION_METHOD          "EncryptionMethod" 
00074 #define OXS_NODE_ENCRYPTION_PROPERTIES      "EncryptionProperties"
00075 #define OXS_NODE_ENCRYPTION_PROPERTY        "EncryptionProperty"
00076 #define OXS_NODE_CIPHER_DATA                "CipherData"
00077 #define OXS_NODE_CIPHER_VALUE               "CipherValue"
00078 #define OXS_NODE_CIPHER_REFERENCE           "CipherReference"
00079 #define OXS_NODE_REFERENCE_LIST             "ReferenceList"
00080 #define OXS_NODE_DATA_REFERENCE             "DataReference"
00081 #define OXS_NODE_KEY_REFERENCE              "KeyReference"
00082 #define OXS_NODE_CARRIED_KEYNAME            "CarriedKeyName"
00083 #define OXS_TYPE_ENC_CONTENT                "http://www.w3.org/2001/04/xmlenc#Content"
00084 #define OXS_TYPE_ENC_ELEMENT                "http://www.w3.org/2001/04/xmlenc#Element"
00085 
00086 /****************************************************************
00087    KeyInfo Nodes
00088 ****************************************************************/
00089 #define OXS_NODE_KEY_INFO               "KeyInfo" 
00090 #define OXS_NODE_REFERENCE             "Reference" 
00091 #define OXS_NODE_TRANSFORMS            "Transforms" 
00092 #define OXS_NODE_TRANSFORM             "Transform" 
00093 
00094 /****************************************************************
00095     KeyInfo Nodes
00096 ****************************************************************/
00097 #define OXS_NODE_BINARY_SECURITY_TOKEN     "BinarySecurityToken"
00098 #define OXS_NODE_KEY_IDENTIFIER     "KeyIdentifier"
00099 #define OXS_NODE_SECURITY_TOKEN_REFRENCE    "SecurityTokenReference"
00100 #define OXS_NODE_EMBEDDED    "Embedded"
00101 
00102 
00103 /****************************************************************
00104     Attributes
00105 ****************************************************************/
00106 #define OXS_ATTR_ID            "Id"
00107 #define OXS_ATTR_URI           "URI"
00108 #define OXS_ATTR_TYPE          "Type"
00109 #define OXS_ATTR_MIMETYPE      "MimeType"
00110 #define OXS_ATTR_ENCODING      "Encoding"
00111 #define OXS_ATTR_ALGORITHM     "Algorithm"
00112 #define OXS_ATTR_FILTER        "Filter"
00113 #define OXS_ATTR_RECIPIENT     "Recipient"
00114 #define OXS_ATTR_TARGET        "Target"
00115 #define OXS_ATTR_ENCODING_TYPE  "EncodingType"
00116 #define OXS_ATTR_VALUE_TYPE     "ValueType"
00117 
00118 
00119 /****************************************************************
00120    AES 
00121 ****************************************************************/
00122 
00123 #define OXS_NAME_AES_128_CBC        "aes128-cbc" 
00124 #define OXS_HREF_AES_128_CBC        "http://www.w3.org/2001/04/xmlenc#aes128-cbc" 
00125 
00126 #define OXS_NAME_AES_192_CBC        "aes192-cbc" 
00127 #define OXS_HREF_AES_192_CBC        "http://www.w3.org/2001/04/xmlenc#aes192-cbc" 
00128 
00129 #define OXS_NAME_AES_256_CBC        "aes256-cbc" 
00130 #define OXS_HREF_AES_256_CBC        "http://www.w3.org/2001/04/xmlenc#aes256-cbc" 
00131 
00132 #define OXS_NAME_KW_AES_128         "kw-aes128" 
00133 #define OXS_HREF_KW_AES_128         "http://www.w3.org/2001/04/xmlenc#kw-aes128" 
00134 
00135 #define OXS_NAME_KW_AES_192         "kw-aes192" 
00136 #define OXS_HREF_KW_AES_192         "http://www.w3.org/2001/04/xmlenc#kw-aes192" 
00137 
00138 #define OXS_NAME_KW_AES_256         "kw-aes256" 
00139 #define OXS_HREF_KW_AES_256         "http://www.w3.org/2001/04/xmlenc#kw-aes256" 
00140 
00141 /****************************************************************
00142   BASE64 
00143 ****************************************************************/
00144 #define OXS_NAME_BASE64           "base64" 
00145 #define OXS_HREF_BASE64           "http://www.w3.org/2000/09/xmldsig#base64" 
00146 
00147 
00148 /****************************************************************
00149  DES 
00150 ****************************************************************/
00151 #define OXS_NAME_DES_KEY_VALUE       "des" 
00152 
00153 #define OXS_NAME_DES3_CBC           "tripledes-cbc" 
00154 #define OXS_HREF_DES3_CBC           "http://www.w3.org/2001/04/xmlenc#tripledes-cbc" 
00155 
00156 #define OXS_NAME_KW_DES3            "kw-tripledes" 
00157 #define OXS_HREF_KW_DES3            "http://www.w3.org/2001/04/xmlenc#kw-tripledes" 
00158 
00159 
00160 
00161 /****************************************************************
00162     DSA 
00163 ****************************************************************/
00164 #define OXS_NAME_DSA_KEY_VALUE          "dsa" 
00165 #define OXS_NODE_DSA_KEY_VALUE          "DSAKeyValue" 
00166 #define OXS_HREF_DSA_KEY_VALUE          "http://www.w3.org/2000/09/xmldsig#DSAKeyValue" 
00167 
00168 #define OXS_NAME_DSA_SHA1          "dsa-sha1" 
00169 #define OXS_HREF_DSA_SHA1          "http://www.w3.org/2000/09/xmldsig#dsa-sha1" 
00170 
00171 /****************************************************************
00172    EncryptedKey
00173 ****************************************************************/
00174 #define OXS_NAME_ENCRYPTED_KEY         "enc-key" 
00175 #define OXS_NODE_ENCRYPTED_KEY         "EncryptedKey" 
00176 #define OXS_HREF_ENCRYPTED_KEY         "http://www.w3.org/2001/04/xmlenc#EncryptedKey" 
00177 
00178 
00179 /****************************************************************
00180     KeyNAME
00181 ****************************************************************/
00182 #define OXS_NAME_KEY_NAME          "key-name" 
00183 #define OXS_NODE_KEY_NAME          "KeyName" 
00184 
00185 
00186 /****************************************************************
00187     KeyValue 
00188 ****************************************************************/
00189 #define OXS_NAME_KEY_VALUE         "key-value" 
00190 #define OXS_NODE_KEY_VALUE         "KeyValue" 
00191 
00192 
00193 /****************************************************************
00194     MD5 
00195 ****************************************************************/
00196 #define OXS_NAME_MD5              "md5" 
00197 #define OXS_HREF_MD5              "http://www.w3.org/2001/04/xmldsig-more#md5" 
00198 
00199 /****************************************************************
00200     RetrievalMethod
00201 ****************************************************************/
00202 #define OXS_NAME_RETRIEVAL_METHOD      "retrieval-method" 
00203 #define OXS_NODE_RETRIEVAL_METHOD      "RetrievalMethod" 
00204 
00205 /****************************************************************
00206     RSA 
00207 ****************************************************************/
00208 #define OXS_NAME_RSAKEY_VALUE          "rsa" 
00209 #define OXS_NODE_RSAKEY_VALUE          "RSAKeyValue" 
00210 #define OXS_HREF_RSAKEY_VALUE          "http://www.w3.org/2000/09/xmldsig#RSAKeyValue" 
00211 
00212 #define OXS_NAME_RSA_MD5           "rsa-md5" 
00213 #define OXS_HREF_RSA_MD5           "http://www.w3.org/2001/04/xmldsig-more#rsa-md5" 
00214 
00215 #define OXS_NAME_RSA_RIPEMD160         "rsa-ripemd160" 
00216 #define OXS_HREF_RSA_RIPEMD160         "http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160" 
00217 
00218 #define OXS_NAME_RSA_SHA1          "rsa-sha1" 
00219 #define OXS_HREF_RSA_SHA1          "http://www.w3.org/2000/09/xmldsig#rsa-sha1" 
00220 
00221 #define OXS_NAME_RSA_SHA224        "rsa-sha224" 
00222 #define OXS_HREF_RSA_SHA224        "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224" 
00223 
00224 #define OXS_NAME_RSA_SHA256        "rsa-sha256" 
00225 #define OXS_HREF_RSA_SHA256        "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" 
00226 
00227 #define OXS_NAME_RSA_SHA384        "rsa-sha384" 
00228 #define OXS_HREF_RSA_SHA384        "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384" 
00229 
00230 #define OXS_NAME_RSA_SHA512        "rsa-sha512" 
00231 #define OXS_HREF_RSA_SHA512        "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512" 
00232 
00233 #define OXS_NAME_RSA_PKCS1         "rsa-1_5" 
00234 #define OXS_HREF_RSA_PKCS1         "http://www.w3.org/2001/04/xmlenc#rsa-1_5" 
00235 
00236 #define OXS_NAME_RSA_OAEP          "rsa-oaep-mgf1p" 
00237 #define OXS_HREF_RSA_OAEP          "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" 
00238 #define OXS_NODE_RSA_OAEP_PARAMS        "OAEPparams" 
00239 
00240 
00241 /****************************************************************
00242     SHA1 
00243 ****************************************************************/
00244 #define OXS_NAME_SHA1             "sha1" 
00245 #define OXS_HREF_SHA1             "http://www.w3.org/2000/09/xmldsig#sha1" 
00246 
00247 #define OXS_NAME_SHA224           "sha224" 
00248 #define OXS_HREF_SHA224           "http://www.w3.org/2001/04/xmldsig-more#sha224" 
00249 
00250 #define OXS_NAME_SHA256           "sha256" 
00251 #define OXS_HREF_SHA256           "http://www.w3.org/2001/04/xmlenc#sha256" 
00252 
00253 #define OXS_NAME_SHA384           "sha384" 
00254 #define OXS_HREF_SHA384           "http://www.w3.org/2001/04/xmldsig-more#sha384" 
00255 
00256 #define OXS_NAME_SHA512           "sha512" 
00257 #define OXS_HREF_SHA512           "http://www.w3.org/2001/04/xmlenc#sha512" 
00258 
00259 /****************************************************************
00260     X509 
00261 ****************************************************************/
00262 #define OXS_NAME_X509_DATA         "x509" 
00263 #define OXS_NODE_X509_DATA         "X509Data" 
00264 #define OXS_HREF_X509_DATA         "http://www.w3.org/2000/09/xmldsig#X509Data" 
00265 
00266 #define OXS_NODE_X509_CERTIFICATE      "X509Certificate" 
00267 #define OXS_NODE_X509_CRL          "X509CRL" 
00268 #define OXS_NODE_X509_SUBJECT_NAME      "X509SubjectName" 
00269 #define OXS_NODE_X509_ISSUER_SERIAL     "X509IssuerSerial" 
00270 #define OXS_NODE_X509_ISSUER_NAME       "X509IssuerName" 
00271 #define OXS_NODE_X509_SERIAL_NUMBER     "X509SerialNumber" 
00272 #define OXS_NODE_X509_SKI          "X509SKI" 
00273 
00274 #define OXS_NAME_RAW_X509_CERT          "raw-x509-cert" 
00275 #define OXS_HREF_RAW_X509_CERT          "http://www.w3.org/2000/09/xmldsig#rawX509Certificate" 
00276 
00277 #define OXS_NAME_X509_STORE        "x509-store" 
00278 
00279 /****************************************************************
00280     SOAP 1.1/1.2
00281 ****************************************************************/
00282 #define OXS_NODE_ENVELOPE         "Envelope" 
00283 #define OXS_NODE_HEADER           "Header" 
00284 #define OXS_NODE_BODY                 "Body" 
00285 #define OXS_NODE_FAULT                "Fault" 
00286 #define OXS_NODE_FAULT_CODE        "faultcode" 
00287 #define OXS_NODE_FAULT_STRING              "faultstring" 
00288 #define OXS_NODE_FAULT_ACTOR               "faultactor" 
00289 #define OXS_NODE_FAULT_DETAIL              "detail" 
00290 #define OXS_NODE_CODE             "Code" 
00291 #define OXS_NODE_REASON           "Reason" 
00292 #define OXS_NODE_NODE             "Node" 
00293 #define OXS_NODE_ROLE             "Role" 
00294 #define OXS_NODE_DETAIL           "Detail" 
00295 #define OXS_NODE_VALUE            "Value" 
00296 #define OXS_NODE_SUBCODE          "Subcode" 
00297 #define OXS_NODE_TEXT             "Text" 
00298 
00299 
00300 #define OXS_SOAP_FAULT_CODE_VERSION_MISMATCH     "VersionMismatch" 
00301 #define OXS_SOAP_FAULT_CODE_MUST_UNDERSTAND      "MustUnderstand" 
00302 #define OXS_SOAP_FAULT_CODE_CLIENT          "Client" 
00303 #define OXS_SOAP_FAULT_CODE_SERVER          "Server" 
00304 #define OXS_SOAP_FAULT_CODE_RECEIVER        "Receiver" 
00305 #define OXS_SOAP_FAULT_CODE_SENDER          "Sender" 
00306 #define OXS_SOAP_FAULT_DATA_ENCODNING_UNKNOWN    "DataEncodingUnknown" 
00307 
00308 /****************************************************************
00309     Ext
00310 ****************************************************************/
00311 #define OXS_ENCODING_BASE64BINARY "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
00312 #define OXS_VALUE_X509V3 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
00313 #define OXS_X509_SUBJ_KI "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier"
00314 /****************************************************************
00315     ST References
00316 ****************************************************************/
00317 #define OXS_STR_DIRECT_REFERENCE "DirectReference"
00318 #define OXS_STR_KEY_IDENTIFIER "KeyIdentifier"
00319 #define OXS_STR_EMBEDDED "Embedded"
00320 #define OXS_STR_ISSUER_SERIAL "IssuerSerial"
00321 
00322 /*************************************************************************/
00323 
00324 
00325 
00326 #ifdef __cplusplus
00327 }
00328 #endif
00329 
00330 #endif /* OXS_CONSTANTS_H*/

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1