# trust_constants.h

Go to the documentation of this file.

    00001 /*
    00002 * Licensed to the Apache Software Foundation (ASF) under one or more
    00003 * contributor license agreements.  See the NOTICE file distributed with
    00004 * this work for additional information regarding copyright ownership.
    00005 * The ASF licenses this file to You under the Apache License, Version 2.0
    00006 * (the "License"); you may not use this file except in compliance with
    00007 * the License.  You may obtain a copy of the License at
    00008 *
    00009 *      http://www.apache.org/licenses/LICENSE-2.0
    00010 *
    00011 * Unless required by applicable law or agreed to in writing, software
    00012 * distributed under the License is distributed on an "AS IS" BASIS,
    00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014 * See the License for the specific language governing permissions and
    00015 * limitations under the License.
    00016 */
    00017
    00018
    00019 #ifndef TRUST_CONSTANTS_H
    00020 #define TRUST_CONSTANTS_H
    00021
    00022
    00023 #include <axutil_utils.h>
    00029 #ifdef __cplusplus
    00030 extern "C"
    00031 {
    00032 #endif
    00033
    00034
    00035
    00036         /*Trust XML Element names */
    00037 #define TRUST_RST_CONTEXT               "Context"
    00038 #define TRUST_TOKEN_TYPE                "TokenType"
    00039 #define TRUST_REQUEST_TYPE              "RequestType"
    00040 #define TRUST_APPLIES_TO                "AppliesTo"
    00041
    00042 #define TRUST_CLAIMS                    "Claims"
    00043 #define TRUST_CLAIMS_DIALECT    "Dialect"
    00044
    00045 #define TRUST_ENTROPY                   "Entropy"
    00046 #define TRUST_BINARY_SECRET             "BinarySecret"
    00047
    00048 #define TRUST_LIFE_TIME                 "LifeTime"
    00049 #define TRUST_LIFE_TIME_CREATED         "Created"
    00050 #define TRUST_LIFE_TIME_EXPIRES         "Expires"
    00051
    00052 #define TRUST_REQUEST_SECURITY_TOKEN            "RequestSecurityToken"
    00053 #define TRUST_REQUESTED_SECURITY_TOKEN          "RequestedSecurityToken"
    00054 #define TRUST_REQUEST_SECURITY_TOKEN_RESPONSE   "RequestSecurityTokenResponse"
    00055 #define TRUST_REQUESTED_PROOF_TOKEN             "RequestedProofToken"
    00056 #define TRUST_REQUEST_SECURITY_TOKEN_RESPONSE_COLLECTION "RequestSecurityTokenResponseCollection"
    00057 #define TRUST_REQUESTED_TOKEN_CANCELED          "RequestedTokenCancelled"
    00058 #define TRUST_COMPUTED_KEY                      "ComputedKey"
    00059 #define TRUST_REQUESTED_ATTACHED_REFERENCE      "RequestedAttachedReference"
    00060 #define TRUST_REQUESTED_UNATTACHED_REFERENCE    "RequestedUnattachedReference"
    00061 #define TRUST_SECURITY_TOKEN_REFERENCE          "SecurityTokenReference"
    00062 #define TRUST_ENCRYPTED_DATA                    "EncryptedData"
    00063 #define TRUST_REQUESTED_TOKEN_CANCELED          "RequestedTokenCancelled"
    00064 #define TRUST_CANCEL_TARGET                     "CancelTarget"
    00065 #define TRUST_URI                               "URI"
    00066 #define TRUST_EPR                   "EndpointReference"
    00067 #define TRUST_EPR_ADDRESS                       "Address"
    00068 #define TRUST_STR_REFERENCE                     "Reference"
    00069
    00070         /* Renewal Bindings */
    00071 #define TRUST_RENEW_TARGET          "RenewTarget"
    00072 #define TRUST_ALLOW_POSTDATING      "AllowPostdating"
    00073 #define TRUST_RENEWING              "Renewing"
    00074
    00075 #define TRUST_RENEW_ALLOW_ATTR      "Allow"
    00076 #define TRUST_RENEW_OK_ATTR         "OK"
    00077
    00078 #define TRUST_VALIDATION_STATUS         "Status"
    00079 #define TRUST_VALIDATION_CODE           "Code"
    00080 #define TRUST_VALIDATION_REASON         "Reason"
    00081
    00082 #define TRUST_CANCEL_TARGET                     "CancelTarget"
    00083
    00084
    00085 #define ATTR_TYPE                   "Type"
    00086 #define TRUST_BIN_SEC_TYPE_NONCE        "/Nonce"
    00087
    00088         /* Request Types */
    00089 #define TRUST_REQ_TYPE_ISSUE            "/Issue"
    00090 #define TRUST_REQ_TYPE_VALIDATE         "/Validate"
    00091 #define TRUST_REQ_TYPE_RENEW            "/Renew"
    00092 #define TRUST_REQ_TYPE_CANCEL           "/Cancel"
    00093
    00094 #define TRUST_RST_ACTION_ISSUE          "/RST/Issue"
    00095 #define TRUST_RST_ACTION_VALIDATE       "/RST/Validate"
    00096 #define TRUST_RST_ACTION_RENEW          "/RST/Renew"
    00097 #define TRUST_RST_ACTION_CANCEL         "/RST/Cancel"
    00098 #define TRUST_RST_ACTION_SCT            "/RST/SCT"
    00099 #define TRUST_RST_ACTION_CANCEL_SCT     "/RST/SCT/Cancel"
    00100
    00101 #define TRUST_KEY_TYPE_SYMM_KEY         "/SymmetricKey"
    00102 #define TRUST_KEY_TYPE_PUBLIC_KEY       "/PublicKey"
    00103 #define TRUST_KEY_TYPE_BEARER           "/Bearer"
    00104
    00105
    00106     /*Key and Token Parameter Extensions*/
    00107 #define TRUST_AUTHENTICATION_TYPE       "AuthenticationType"
    00108 #define TRUST_KEY_TYPE                  "KeyType"
    00109 #define TRUST_KEY_SIZE                  "KeySize"
    00110 #define TRUST_SIGNATURE_ALGO            "SignatureAlgorithm"
    00111 #define TRUST_ENCRYPTION_ALGO           "EncryptionAlgorithm"
    00112 #define TRUST_CANONICAL_ALGO            "CanonicalizationAlgorithm"
    00113 #define TRUST_COMPUTED_KEY_ALGO         "ComputedKeyAlgorithm"
    00114 #define TRUST_DESIRED_ENCRYPTION         "Encryption"
    00115 #define TRUST_PROOF_ENCRYPTION           "ProofEncryption"
    00116 #define TRUST_USE_KEY                    "UseKey"
    00117 #define TRUST_SIGN_WITH                  "SignWith"
    00118 #define TRUST_ENCRYPT_WITH               "EncryptWith"
    00119
    00120 #define TRUST_ATTR_USE_KEY_SIG          "Sig"
    00121
    00122
    00123 #define TRUST_DEFAULT_KEY_SIZE 256
    00124
    00125         /* Trust Namespace URIs and Namespace prefix */
    00126 #define TRUST_S11        "S11"
    00127 #define TRUST_S11_XMLNS  "http://schemas.xmlsoap.org/soap/envelope/"
    00128 #define TRUST_S12        "S12"
    00129 #define TRUST_S12_XMLNS  "http://www.w3.org/2003/05/soap-envelope"
    00130 #define TRUST_WSU        "wsu"
    00131 #define TRUST_WSU_XMLNS  "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    00132 #define TRUST_WSSE       "wsse"
    00133 #define TRUST_WSSE_XMLNS "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    00134 #define TRUST_WST        "wst"
    00135 #define TRUST_DS         "ds"
    00136 #define TRUST_DS_XMLNS   "http://www.w3.org/2000/09/xmldsig#"
    00137 #define TRUST_XENC       "xenc"
    00138 #define TRUST_XENC_XMLNS "http://www.w3.org/2001/04/xmlenc#"
    00139 #define TRUST_WSP        "wsp"
    00140 #define TRUST_WSP_XMLNS  "http://schemas.xmlsoap.org/ws/2004/09/policy"
    00141 #define TRUST_WSA        "wsa"
    00142 #define TRUST_WSA_XMLNS  "http://schemas.xmlsoap.org/ws/2004/08/addressing"
    00143 #define TRUST_XS         "xs"
    00144 #define TRUST_XS_XMLNS   "http://www.w3.org/2001/XMLSchema"
    00145
    00146 #define SECCONV_200502_REQUEST_ISSUE_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT"
    00147 #define SECCONV_200502_REPLY_ISSUE_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT"
    00148 #define SECCONV_200502_REQUEST_AMEND_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Amend"
    00149 #define SECCONV_200502_REPLY_AMEND_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT/Amend"
    00150 #define SECCONV_200502_REQUEST_RENEW_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Renew"
    00151 #define SECCONV_200502_REPLY_RENEW_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT/Renew"
    00152 #define SECCONV_200502_REQUEST_CANCEL_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Cancel"
    00153 #define SECCONV_200502_REPLY_CANCEL_ACTION "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT/Cancel"
    00154 #define SECCONV_200512_REQUEST_ISSUE_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT"
    00155 #define SECCONV_200512_REPLY_ISSUE_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/SCT"
    00156 #define SECCONV_200512_REQUEST_AMEND_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT/Amend"
    00157 #define SECCONV_200512_REPLY_AMEND_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/SCT/Amend"
    00158 #define SECCONV_200512_REQUEST_RENEW_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT/Renew"
    00159 #define SECCONV_200512_REPLY_RENEW_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/SCT/Renew"
    00160 #define SECCONV_200512_REQUEST_CANCEL_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT/Cancel"
    00161 #define SECCONV_200512_REPLY_CANCEL_ACTION "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/SCT/Cancel"
    00162
    00163 #define SECCONV_GLOBAL_ID_PREFIX "urn:uuid:"
    00164 #define SECCONV_LOCAL_ID_PREFIX "sctId"
    00165
    00166
    00167 #define TRUST_COMPUTED_KEY_PSHA1 "http://schemas.xmlsoap.org/ws/2005/02/trust/CK/PSHA1"
    00168 #define TRUST_COMPUTED_KEY_PSHA1_05_12 "http://docs.oasis-open.org/ws-sx/ws-trust/200512/CK/PSHA1"
    00169 /* NS Versions */
    00170
    00171 #define TRUST_VERSION_INVALID 0
    00172 #define TRUST_VERSION_05_02 1
    00173 #define TRUST_VERSION_05_12 2
    00174
    00175 #define SECCONV_ACTION_INVALID 0
    00176 #define SECCONV_ACTION_ISSUE 1
    00177 #define SECCONV_ACTION_AMEND 2
    00178 #define SECCONV_ACTION_RENEW 3
    00179 #define SECCONV_ACTION_CANCEL 4
    00180
    00181
    00182 /* WS-SX Namespaces*/
    00183
    00184 #define TRUST_WST_XMLNS_05_12 "http://docs.oasis-open.org/ws-sx/ws-trust/200512"
    00185 #define TRUST_WST_XMLNS_05_02 "http://schemas.xmlsoap.org/ws/2005/02/trust"
    00186
    00187 #ifdef __cplusplus
    00188 }
    00189 #endif
    00190
    00191 #endif /* TRUST_CONSTANTS_H*/