rampart_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 RAMPART_CONSTANTS_H
00020 #define RAMPART_CONSTANTS_H
00021 
00031 #include <oxs_constants.h>
00032 #include <rampart_error.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038 
00054     /*Rampart module*/
00055 #define RAMPART_IN_HANDLER  "RampartInHandler"
00056 #define RAMPART_OUT_HANDLER  "RampartOutHandler"
00057 
00058     /* Rahas module */
00059 #define RAHAS_IN_HANDLER "RahasInHandler"
00060 #define RAHAS_OUT_HANDLER "RahasOutHandler"
00061 
00062     /*Default values*/
00063 #define RAMPART_DEFAULT_KT_ALGO OXS_DEFAULT_KT_ALGO_HREF
00064 #define RAMPART_STR_DEFAULT OXS_STR_DEFAULT
00065 #define RAMPART_TIMESTAMP_TOKEN_DEFAULT_TIME_TO_LIVE 300
00066 
00067     /* rampart element names*/
00068 #define RAMPART_SECURITY "Security"
00069 #define RAMPART_SECURITY_USERNAMETOKEN "UsernameToken"
00070 #define RAMPART_SECURITY_USERNAMETOKEN_USERNAME "Username"
00071 #define RAMPART_SECURITY_USERNAMETOKEN_PASSWORD "Password"
00072 #define RAMPART_SECURITY_USERNAMETOKEN_CREATED "Created"
00073 #define RAMPART_SECURITY_USERNAMETOKEN_NONCE "Nonce"
00074 #define RAMPART_SECURITY_USERNAMETOKEN_PASSWORD_ATTR_TYPE "Type"
00075 #define RAMPART_SECURITY_TIMESTAMP "Timestamp"
00076 #define RAMPART_SECURITY_TIMESTAMP_CREATED "Created"
00077 #define RAMPART_SECURITY_TIMESTAMP_EXPIRES "Expires"
00078 #define RAMPART_RAMPART "rampart"
00079 
00080     /*Rampart URIs*/
00081 #define RAMPART_WSSE "wsse"
00082 #define RAMPART_WSSE_XMLNS "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
00083 #define RAMPART_WSU "wsu"
00084 #define RAMPART_WSU_XMLNS "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
00085 #define RAMPART_PASSWORD_DIGEST_URI "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"
00086 
00087 #define RAMPART_PASSWORD_TEXT_URI "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
00088 
00089 
00090 #define RAMPART_INFLOW_SECURITY_POLICY              "InflowSecurityPolicy"
00091 #define RAMPART_OUTFLOW_SECURITY_POLICY             "OutflowSecurityPolicy"
00092 
00093 #define INFLOW_RAMPART_CONTEXT                      "InflowRampartContext"
00094 #define OUTFLOW_RAMPART_CONTEXT                     "OutflowRampartContext"
00095 
00096 #define RAMPART_CONTEXT                             "RampartContext"
00097 
00098 #define IN_MESSAGE_SECURITY                          "InMessageSecurity"
00099 #define OUT_MESSAGE_SECURITY                         "OutMessageSEcurity"
00100 #define RAMPART_PASSWORD_TEXT                       "plainText"
00101 #define RAMPART_PASSWORD_DIGEST                     "Digest"
00102 #define RAMPART_CONFIGURATION                       "RampartConfiguration"
00103 #define RAMPART_CLIENT_CONFIGURATION                "RampartClientConfiguration"
00104 
00105     /************fault codes***************/
00106 #define RAMPART_FAULT_UNSUPPORTED_SECURITY_TOKEN    "wsse:UnsupportedSecurityToken"
00107 #define RAMPART_FAULT_UNSUPPORTED_ALGORITHM         "wsse:UnsupportedAlgorithm"
00108 #define RAMPART_FAULT_INVALID_SECURITY              "wsse:InvalidSecurity"
00109 #define RAMPART_FAULT_INVALID_SECURITY_TOKEN        "wsse:InvalidSecurityToken"
00110 #define RAMPART_FAULT_FAILED_AUTHENTICATION         "wsse:FailedAuthentication"
00111 #define RAMPART_FAULT_FAILED_CHECK                  "wsse:FailedCheck"
00112 #define RAMPART_FAULT_SECURITY_TOKEN_UNAVAILABLE    "wsse:SecurityTokenUnavailable"
00113 #define RAMPART_FAULT_TRUST_REQUEST_FAILED          "wst:RequestFailed"
00114 #define RAMPART_FAULT_TRUST_REQUEST_INVALID         "wst:InvalidRequest"
00115 
00116     /***********fault related strings*********/
00117 #define RAMPART_FAULT_IN_TIMESTAMP             "wsse:Timestamp"
00118 #define RAMPART_FAULT_IN_USERNAMETOKEN         "wsse:UsernameToken"
00119 #define RAMPART_FAULT_IN_ENCRYPTED_KEY         "xenc:EncryptedKey"
00120 #define RAMPART_FAULT_IN_ENCRYPTED_DATA        "xenc:EncryptedData"
00121 #define RAMPART_FAULT_IN_SIGNATURE             "ds:Signature"
00122 #define RAMPART_FAULT_MSG_REPLAYED             "rampc:Message-Replayed"
00123 #define RAMPART_FAULT_IN_POLICY                "rampc:Policy"
00124 
00125 #define RAMPART_FAULT_ELEMENT_LOCAL_NAME       "ProblemSecurityHeader"
00126 
00127 
00128     /*Dynamically set values*/
00129 #define RAMPART_ACTION_PASSWORD "password"
00130 #define RAMPART_ACTION_ENC_USER_PASSWORD "encUserPassword"
00131 #define RAMPART_CALLBACK_SPECIFIC_PROPERTY "callbackSpecificProperty"
00132 
00133     /*Security processed results*/
00134 #define RAMPART_SECURITY_PROCESSED_RESULTS "SecurityProcessedResults"
00135 #define RAMPART_SPR_UT_USERNAME "SPR_UT_username"
00136 #define RAMPART_SPR_UT_CREATED "SPR_UT_created"
00137 #define RAMPART_SPR_UT_NONCE "SPR_UT_nonce"
00138 #define RAMPART_SPR_UT_PASSWORD_TYPE "SPR_UT_passwordType"
00139 #define RAMPART_SPR_TS_CREATED "SPR_TS_created"
00140 #define RAMPART_SPR_TS_EXPIRES "SPR_TS_expires"
00141 #define RAMPART_SPR_UT_CHECKED "SPR_UT_Checked"
00142 #define RAMPART_SPR_TS_CHECKED "SPR_TS_Checked"
00143 #define RAMPART_SPR_ENC_CHECKED "SPR_ENC_Checked"
00144 #define RAMPART_SPR_SIG_VALUE "SPR_Sig_Val"
00145 #define RAMPART_SPR_ENDORSED_VALUE "SPR_Endorsed_Value"
00146 #define RAMPART_SPR_SIG_ENCRYPTED "SPR_Sig_Encrypted"
00147 #define RAMPART_SPR_SIG_CONFIRM_FOUND "SPR_Sig_Confirmation_Found"
00148 #define RAMPART_SPR_BODY_ENCRYPTED "SPR_Body_Encrypted"
00149 
00150 #define RAMPART_YES "YES"
00151 #define RAMPART_NO "NO"
00152 
00153 #define RAMPART_STR_DIRECT_REFERENCE    OXS_STR_DIRECT_REFERENCE
00154 #define RAMPART_STR_KEY_IDENTIFIER      OXS_STR_KEY_IDENTIFIER
00155 #define RAMPART_STR_EMBEDDED            OXS_STR_EMBEDDED
00156 #define RAMPART_STR_ISSUER_SERIAL       OXS_STR_ISSUER_SERIAL
00157 #define RAMPART_STR_THUMB_PRINT         OXS_STR_THUMB_PRINT
00158 #define RAMPART_STR_EXTERNAL_URI        OXS_STR_EXTERNAL_URI
00159 #define RAMPART_STR_ENCRYPTED_KEY       OXS_STR_ENCRYPTED_KEY
00160 
00161 #define RAMPART_RD_DEF_VALID_DURATION 60
00162 #define RAMPART_RD_DEF_MAX_RCDS 5
00163 
00164 #define RAMPART_SCT_ID_TYPE_UNKNOWN 0
00165 #define RAMPART_SCT_ID_TYPE_LOCAL 1
00166 #define RAMPART_SCT_ID_TYPE_GLOBAL 2
00167 
00168 #define RAMPART_USERNAME_TOKEN_NONCE_LENGTH 24
00169 
00170 #define RAMPART_ENC_TOKEN_ID "EncryptionTokenID"
00171 #define RAMPART_SIG_TOKEN_ID "SignatureTokenID"
00172 
00173 #define RAMPART_BST_ID_PREFIX "BST-"
00174 #define RAMPART_EMBED_TOKEN_ID "ID"
00175 
00176 #ifdef __cplusplus
00177 }
00178 #endif
00179 
00181 #endif /* RAMPART_CONSTANTS_H*/

Generated on Wed Oct 14 01:02:16 2009 for Rampart/C by  doxygen 1.5.7.1